Fix global.d.ts var declarations

e65b72ea4153d7a3b5f22ec1af325d6da760b1cf

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

1 files changed, +13 -10Ignore whitespace
public/global.d.ts+13 -10
@@ -1,18 +1,21 @@
11import libs from './lib';
22import getContext from './scripts/st-context';
33
4-// Global namespace modules
4+declare global {
5-declare var ai;
5+ // Global namespace modules
6-declare var pdfjsLib;
6+ interface Window {
7-declare var ePub;
7+ ai: any;
8+ }
89
910 declare var SillyTavern: {pdfjsLib;
10- getContext(): typeof getContext;
11+ declare var ePub;
11- llm: any;
12+
12- libs: typeof libs;
13+ declare var SillyTavern: {
13-};
14+ getContext(): typeof getContext;
15+ llm: any;
16+ libs: typeof libs;
17+ };
1418
15-declare global {
1619 // Jquery plugins
1720 interface JQuery {
1821 nanogallery2(options?: any): JQuery;