]> BookStack Code Mirror - bookstack/blobdiff - resources/js/global.d.ts
respective book and chapter structure added.
[bookstack] / resources / js / global.d.ts
index 0d7efc4d43c8673e4e3a7def39d1082a5dfeaba5..e505c96e0d4a24f1a5d83fcee75a9e1b70962273 100644 (file)
@@ -1,6 +1,7 @@
 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;
@@ -8,6 +9,7 @@ declare global {
     interface Window {
         $components: ComponentStore;
         $events: EventManager;
+        $trans: Translator;
         $http: HttpManager;
         baseUrl: (path: string) => string;
     }