Add SillyTavern globals

2bdc6f27cc95807bb954962eefdf359003849462

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +6 -0Showing whitespace changes
.eslintrc.js+1 -0
@@ -55,6 +55,7 @@ module.exports = {
55 isProbablyReaderable: 'readonly',55 isProbablyReaderable: 'readonly',
56 ePub: 'readonly',56 ePub: 'readonly',
57 diff_match_patch: 'readonly',57 diff_match_patch: 'readonly',
58 SillyTavern: 'readonly',
58 },59 },
59 },60 },
60 ],61 ],
public/global.d.ts+5 -0
@@ -14,6 +14,11 @@ declare var isProbablyReaderable;
14declare var ePub;14declare var ePub;
15declare var ai;15declare var ai;
1616
17declare var SillyTavern: {
18 getContext(): any;
19 llm: any;
20};
21
17// Jquery plugins22// Jquery plugins
18interface JQuery {23interface JQuery {
19 nanogallery2(options?: any): JQuery;24 nanogallery2(options?: any): JQuery;