Fix global.d.ts var declarations

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

17
public/global.d.ts vendored
View File

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