]> BookStack Code Mirror - bookstack/blobdiff - resources/js/global.d.ts
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / js / global.d.ts
index c5aba8ee287986e88d99c9f74a4006d0a9914b0c..b637c97c1b92a7cf55dd3556c427d4e0e1992e54 100644 (file)
@@ -1,4 +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 {
+        __DEV__: boolean;
+        $components: ComponentStore;
+        $events: EventManager;
+        $trans: Translator;
+        $http: HttpManager;
+        baseUrl: (path: string) => string;
+        importVersioned: (module: string) => Promise<object>;
+    }
 }
\ No newline at end of file