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