From 2bdc6f27cc95807bb954962eefdf359003849462 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 12 Aug 2024 21:56:32 +0300 Subject: [PATCH] Add SillyTavern globals --- .eslintrc.js | 1 + public/global.d.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index f05a857ad..8d9e36fe3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -55,6 +55,7 @@ module.exports = { isProbablyReaderable: 'readonly', ePub: 'readonly', diff_match_patch: 'readonly', + SillyTavern: 'readonly', }, }, ], diff --git a/public/global.d.ts b/public/global.d.ts index 1a5ee091b..c8bfe14c2 100644 --- a/public/global.d.ts +++ b/public/global.d.ts @@ -14,6 +14,11 @@ declare var isProbablyReaderable; declare var ePub; declare var ai; +declare var SillyTavern: { + getContext(): any; + llm: any; +}; + // Jquery plugins interface JQuery { nanogallery2(options?: any): JQuery;