X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/d0a5a5ef371512a20f6445fd543dbe95a9b42fac..refs/pull/5689/head:/resources/js/global.d.ts diff --git a/resources/js/global.d.ts b/resources/js/global.d.ts index 537da6368..b637c97c1 100644 --- a/resources/js/global.d.ts +++ b/resources/js/global.d.ts @@ -1,12 +1,18 @@ -declare module '*.svg' { - const content: string; - export default content; -} +import {ComponentStore} from "./services/components"; +import {EventManager} from "./services/events"; +import {HttpManager} from "./services/http"; +import {Translator} from "./services/translations"; declare global { + const __DEV__: boolean; + interface Window { - $components: { - first: (string) => Object, - } + __DEV__: boolean; + $components: ComponentStore; + $events: EventManager; + $trans: Translator; + $http: HttpManager; + baseUrl: (path: string) => string; + importVersioned: (module: string) => Promise; } } \ No newline at end of file