|
|
@@ -1,9 +1,17 @@
|
|
|
import { FullCalendarElement } from './FullCalendarElement.js'
|
|
|
|
|
|
+type FullCalendarElementType = typeof FullCalendarElement
|
|
|
+
|
|
|
declare global {
|
|
|
+ // (extensions to globalThis must use `var`)
|
|
|
+ // eslint-disable-next-line no-var
|
|
|
+ var FullCalendarElement: FullCalendarElementType
|
|
|
+
|
|
|
interface HTMLElementTagNameMap {
|
|
|
'full-calendar': FullCalendarElement
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+globalThis.FullCalendarElement = FullCalendarElement
|
|
|
+
|
|
|
customElements.define('full-calendar', FullCalendarElement)
|