1
0
Fork 0
mirror of https://github.com/archtechx/alpine-typescript.git synced 2025-12-11 22:34:03 +00:00

make AlpineElement global

This commit is contained in:
Samuel Štancl 2021-05-23 19:18:35 +02:00
parent 61e170473b
commit 98250d21e1
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@leanadmin/alpine-typescript",
"version": "0.1.17",
"version": "0.1.18",
"description": "TypeScript support for Alpine.js",
"main": "dist/index.js",
"repository": {

View file

@ -136,14 +136,14 @@ if (window.AlpineComponents === undefined) {
bootstrap();
}
export interface AlpineElement extends HTMLElement {
__x: ComponentController;
}
declare global {
interface Window {
Alpine: Alpine;
deferLoadingAlpine: any;
AlpineComponents: any;
}
interface AlpineElement extends HTMLElement {
__x: ComponentController;
}
}