Add SillyTavern globals
| @@ -55,6 +55,7 @@ module.exports = { | ||
| 55 | 55 | isProbablyReaderable: 'readonly', |
| 56 | 56 | ePub: 'readonly', |
| 57 | 57 | diff_match_patch: 'readonly', |
| 58 | + SillyTavern: 'readonly', | |
| 58 | 59 | }, |
| 59 | 60 | }, |
| 60 | 61 | ], |
| @@ -14,6 +14,11 @@ declare var isProbablyReaderable; | ||
| 14 | 14 | declare var ePub; |
| 15 | 15 | declare var ai; |
| 16 | 16 | |
| 17 | +declare var SillyTavern: { | |
| 18 | + getContext(): any; | |
| 19 | + llm: any; | |
| 20 | +}; | |
| 21 | + | |
| 17 | 22 | // Jquery plugins |
| 18 | 23 | interface JQuery { |
| 19 | 24 | nanogallery2(options?: any): JQuery; |