]> BookStack Code Mirror - bookstack/blobdiff - resources/js/global.d.ts
respective book and chapter structure added.
[bookstack] / resources / js / global.d.ts
index 537da63685455d1f4cdca2bf5c088528948b0a73..e505c96e0d4a24f1a5d83fcee75a9e1b70962273 100644 (file)
@@ -1,12 +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: {
-            first: (string) => Object,
-        }
+        $components: ComponentStore;
+        $events: EventManager;
+        $trans: Translator;
+        $http: HttpManager;
+        baseUrl: (path: string) => string;
     }
 }
\ No newline at end of file