Skip to content

Commit

Permalink
feat(live-region-element): add tag name to HTMLElementTagNameMap (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack authored Feb 14, 2024
1 parent b2ccd51 commit addd53b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/live-region-element/src/define.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import {LiveRegionElement} from './live-region-element'

declare global {
interface HTMLElementTagNameMap {
'live-region': LiveRegionElement
}
}

if (!customElements.get('live-region')) {
customElements.define('live-region', LiveRegionElement)
}

0 comments on commit addd53b

Please sign in to comment.