diff --git a/src/worker/store.ts b/src/worker/store.ts index c21b5d642..dcde28349 100644 --- a/src/worker/store.ts +++ b/src/worker/store.ts @@ -42,6 +42,9 @@ import * as Messenger from './modules/messenger.js'; import * as History from './modules/history.js'; import * as Calendar from './modules/calendar.js'; +declare var WorkerGlobalScope: any +declare var SharedWorkerGlobalScope: any + interface StoreConfig { ApiConfig: any, AppConfig: any, diff --git a/src/worker/types.ts b/src/worker/types.ts index 8bc6e72f6..17af4ec0f 100644 --- a/src/worker/types.ts +++ b/src/worker/types.ts @@ -2,12 +2,6 @@ // specific methods for each module type Callback = (...args: any[]) => void -declare module globalThis { - let CryptPad_Messages: any; - let CryptPad_AppConfig: any; - let window: any; -} - export type ModuleConfig = { emit: Function }