Fix global.d.ts var declarations

This commit is contained in:
Cohee
2025-03-12 20:54:07 +02:00
parent c9c5dfa8c0
commit e65b72ea41

25
public/global.d.ts vendored
View File

@ -1,18 +1,21 @@
import libs from './lib';
import getContext from './scripts/st-context';
// Global namespace modules
declare var ai;
declare var pdfjsLib;
declare var ePub;
declare var SillyTavern: {
getContext(): typeof getContext;
llm: any;
libs: typeof libs;
};
declare global {
// Global namespace modules
interface Window {
ai: any;
}
declare var pdfjsLib;
declare var ePub;
declare var SillyTavern: {
getContext(): typeof getContext;
llm: any;
libs: typeof libs;
};
// Jquery plugins
interface JQuery {
nanogallery2(options?: any): JQuery;