Skip to content

Commit

Permalink
Merge pull request #89 from stof/patch-1
Browse files Browse the repository at this point in the history
Register event types for better type inference
  • Loading branch information
camertron authored Mar 12, 2024
2 parents ff00f5b + 75d656a commit 22b1f80
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tab-container-element-define.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ declare global {
['tab-container']: JSXBase['span'] & Partial<Omit<TabContainerElement, keyof HTMLElement>>
}
}
interface GlobalEventHandlersEventMap {
'tab-container-change': TabContainerChangeEvent;

Check failure on line 31 in src/tab-container-element-define.ts

View workflow job for this annotation

GitHub Actions / build

Delete `;`

Check failure on line 31 in src/tab-container-element-define.ts

View workflow job for this annotation

GitHub Actions / publish-npm

Delete `;`

Check failure on line 31 in src/tab-container-element-define.ts

View workflow job for this annotation

GitHub Actions / build

Delete `;`
'tab-container-changed': TabContainerChangeEvent;

Check failure on line 32 in src/tab-container-element-define.ts

View workflow job for this annotation

GitHub Actions / build

Delete `;`

Check failure on line 32 in src/tab-container-element-define.ts

View workflow job for this annotation

GitHub Actions / publish-npm

Delete `;`

Check failure on line 32 in src/tab-container-element-define.ts

View workflow job for this annotation

GitHub Actions / build

Delete `;`
}
interface ElementEventMap {
'tab-container-change': TabContainerChangeEvent;

Check failure on line 35 in src/tab-container-element-define.ts

View workflow job for this annotation

GitHub Actions / build

Delete `;`

Check failure on line 35 in src/tab-container-element-define.ts

View workflow job for this annotation

GitHub Actions / publish-npm

Delete `;`

Check failure on line 35 in src/tab-container-element-define.ts

View workflow job for this annotation

GitHub Actions / build

Delete `;`
'tab-container-changed': TabContainerChangeEvent;

Check failure on line 36 in src/tab-container-element-define.ts

View workflow job for this annotation

GitHub Actions / build

Delete `;`

Check failure on line 36 in src/tab-container-element-define.ts

View workflow job for this annotation

GitHub Actions / publish-npm

Delete `;`

Check failure on line 36 in src/tab-container-element-define.ts

View workflow job for this annotation

GitHub Actions / build

Delete `;`
}
}

export default TabContainerElement
Expand Down

0 comments on commit 22b1f80

Please sign in to comment.