Add SillyTavern globals
| @@ -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 | ], |
| @@ -14,6 +14,11 @@ declare var isProbablyReaderable; | |||
| 14 | declare var ePub; | 14 | declare var ePub; |
| 15 | declare var ai; | 15 | declare var ai; |
| 16 | 16 | ||
| 17 | declare var SillyTavern: { | ||
| 18 | getContext(): any; | ||
| 19 | llm: any; | ||
| 20 | }; | ||
| 21 | |||
| 17 | // Jquery plugins | 22 | // Jquery plugins |
| 18 | interface JQuery { | 23 | interface JQuery { |
| 19 | nanogallery2(options?: any): JQuery; | 24 | nanogallery2(options?: any): JQuery; |