diff --git a/public/global.d.ts b/public/global.d.ts index dc4f28f51..4c90a854f 100644 --- a/public/global.d.ts +++ b/public/global.d.ts @@ -1,18 +1,21 @@ import libs from './lib'; import getContext from './scripts/st-context'; -// Global namespace modules -declare var ai; -declare var pdfjsLib; -declare var ePub; - -declare var SillyTavern: { - getContext(): typeof getContext; - llm: any; - libs: typeof libs; -}; - declare global { + // Global namespace modules + interface Window { + ai: any; + } + + declare var pdfjsLib; + declare var ePub; + + declare var SillyTavern: { + getContext(): typeof getContext; + llm: any; + libs: typeof libs; + }; + // Jquery plugins interface JQuery { nanogallery2(options?: any): JQuery;