Fix global.d.ts var declarations
| @@ -1,8 +1,12 @@ | |||
| 1 | import libs from './lib'; | 1 | import libs from './lib'; |
| 2 | import getContext from './scripts/st-context'; | 2 | import getContext from './scripts/st-context'; |
| 3 | 3 | ||
| 4 | declare global { | ||
| 4 | // Global namespace modules | 5 | // Global namespace modules |
| 5 | declare var ai; | 6 | interface Window { |
| 7 | ai: any; | ||
| 8 | } | ||
| 9 | |||
| 6 | declare var pdfjsLib; | 10 | declare var pdfjsLib; |
| 7 | declare var ePub; | 11 | declare var ePub; |
| 8 | 12 | ||
| @@ -12,7 +16,6 @@ declare var SillyTavern: { | |||
| 12 | libs: typeof libs; | 16 | libs: typeof libs; |
| 13 | }; | 17 | }; |
| 14 | 18 | ||
| 15 | declare global { | ||
| 16 | // Jquery plugins | 19 | // Jquery plugins |
| 17 | interface JQuery { | 20 | interface JQuery { |
| 18 | nanogallery2(options?: any): JQuery; | 21 | nanogallery2(options?: any): JQuery; |