Skip to content

Commit

Permalink
vue type checking now working
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Oct 22, 2024
1 parent c8d46e6 commit 4bc9010
Showing 81 changed files with 17,691 additions and 721 deletions.
1,643 changes: 960 additions & 683 deletions README.md

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions dist/LumeElement.d.ts
Original file line number Diff line number Diff line change
@@ -79,6 +79,29 @@ declare class LumeElement extends LumeElement_base {
* ```
*/
static observedAttributeHandlers?: AttributeHandlerMap;
/**
* A list of events that the element can dispatch.
* This is useful for non-decorator users. This list will define handling of `on*` properties on the element.
* Decorator users can use the `@event` decorator on `on*` properties instead.
* Non-decorator users should still define the `on*` properties as well when types for JSX `on*` props are needed.
*
* Example:
*
* ```js
* element('my-el')(
* class MyEl extends LumeElement {
* static events = ['jump']
* }
* )
*
* const el = document.createElement('my-el')
*
* el.onjump = () => console.log('jump!')
*
* el.dispatchEvent(new Event('jump')) // logs 'jump!'
* ```
*/
static events?: string[];
/** Note, this is internal and used by the @attribute decorator, see attribute.ts. */
[__attributesToProps]?: Record<string, {
name: string;
2 changes: 1 addition & 1 deletion dist/LumeElement.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions dist/LumeElement.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4bc9010

Please sign in to comment.