From 284bac9b49d3d7f93c4dba3d2b5031f6e531e126 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 28 Feb 2025 22:51:34 +0200 Subject: [PATCH] Add type of this_chid --- public/script.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/script.js b/public/script.js index 9598fbfcc..3519e9997 100644 --- a/public/script.js +++ b/public/script.js @@ -553,6 +553,10 @@ let generatedPromptCache = ''; let generation_started = new Date(); /** @type {import('./scripts/char-data.js').v1CharData[]} */ export let characters = []; +/** + * Stringified index of a currently chosen entity in the characters array. + * @type {string|undefined} Yes, we hate it as much as you do. + */ export let this_chid; let saveCharactersPage = 0; export const default_avatar = 'img/ai4.png';