Add SillyTavern globals

This commit is contained in:
Cohee 2024-08-12 21:56:32 +03:00
parent 406acb4312
commit 2bdc6f27cc
2 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,7 @@ module.exports = {
isProbablyReaderable: 'readonly', isProbablyReaderable: 'readonly',
ePub: 'readonly', ePub: 'readonly',
diff_match_patch: 'readonly', diff_match_patch: 'readonly',
SillyTavern: 'readonly',
}, },
}, },
], ],

5
public/global.d.ts vendored
View File

@ -14,6 +14,11 @@ declare var isProbablyReaderable;
declare var ePub; declare var ePub;
declare var ai; declare var ai;
declare var SillyTavern: {
getContext(): any;
llm: any;
};
// Jquery plugins // Jquery plugins
interface JQuery { interface JQuery {
nanogallery2(options?: any): JQuery; nanogallery2(options?: any): JQuery;