X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/13d970c7ce0bf9b88c3553b561cef11cbba0e71a..refs/pull/5280/head:/resources/js/global.d.ts diff --git a/resources/js/global.d.ts b/resources/js/global.d.ts index c5aba8ee2..e505c96e0 100644 --- a/resources/js/global.d.ts +++ b/resources/js/global.d.ts @@ -1,4 +1,16 @@ -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: ComponentStore; + $events: EventManager; + $trans: Translator; + $http: HttpManager; + baseUrl: (path: string) => string; + } } \ No newline at end of file