Fix jquery plugins typedef

This commit is contained in:
Cohee
2024-10-31 21:05:22 +02:00
parent f4ef324203
commit 5fe1bc46e6

6
public/global.d.ts vendored
View File

@@ -11,8 +11,9 @@ declare var SillyTavern: {
libs: typeof libs;
};
// Jquery plugins
interface JQuery {
declare global {
// Jquery plugins
interface JQuery {
nanogallery2(options?: any): JQuery;
nanogallery2(method: string, options?: any): JQuery;
pagination(method: 'getCurrentPageNum'): number;
@@ -108,6 +109,7 @@ interface JQuery {
sortable(method: 'option', options: SortableOptions): JQuery;
//#endregion
}
}
//#region select2