From e65b72ea4153d7a3b5f22ec1af325d6da760b1cf Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 12 Mar 2025 20:54:07 +0200 Subject: [PATCH] Fix global.d.ts var declarations --- public/global.d.ts | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) 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;