Fix global.d.ts var declarations

e65b72ea4153d7a3b5f22ec1af325d6da760b1cf

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

1 files changed, +5 -2Showing whitespace changes
public/global.d.ts+5 -2
@@ -1,8 +1,12 @@
11import libs from './lib';
22import getContext from './scripts/st-context';
33
4+declare global {
45 // Global namespace modules
5-declare var ai;
6+ interface Window {
7+ ai: any;
8+ }
9+
610 declare var pdfjsLib;
711 declare var ePub;
812
@@ -12,7 +16,6 @@ declare var SillyTavern: {
1216 libs: typeof libs;
1317 };
1418
15-declare global {
1619 // Jquery plugins
1720 interface JQuery {
1821 nanogallery2(options?: any): JQuery;