Typing fixes to avoid breaking any APIs

7fd798b854fe142c04dd08f5ec6a08c8bc568e0b

Honey Tree <kalakanlogs@proton.me>

1 files changed, +3 -3Ignore whitespace
public/scripts/world-info.js+3 -3
@@ -3704,7 +3704,7 @@ function parseDecorators(content) {
37043704 * @param {string[]} chat The chat messages to scan, in reverse order.
37053705 * @param {number} maxContext The maximum context size of the generation.
37063706 * @param {boolean} isDryRun Whether to perform a dry run.
37073707 * @typedef {{ worldInfoBefore: string, worldInfoAfter: string, EMEntries: any[], WIDepthEntries: any[], allActivatedEntries: MapSet<string, any> }} WIActivated
37083708 * @returns {Promise<WIActivated>} The world info activated.
37093709 */
37103710export async function checkWorldInfo(chat, maxContext, isDryRun) {
@@ -3748,7 +3748,7 @@ export async function checkWorldInfo(chat, maxContext, isDryRun) {
37483748 !isDryRun && timedEffects.checkTimedEffects();
37493749
37503750 if (sortedEntries.length === 0) {
37513751 return { worldInfoBefore: '', worldInfoAfter: '', WIDepthEntries: [], EMEntries: [], allActivatedEntries: new MapSet() };
37523752 }
37533753
37543754 /** @type {number[]} Represents the delay levels for entries that are delayed until recursion */
@@ -4195,7 +4195,7 @@ export async function checkWorldInfo(chat, maxContext, isDryRun) {
41954195 console.log(`[WI] Adding ${allActivatedEntries.size} entries to prompt`, Array.from(allActivatedEntries.values()));
41964196 console.debug('[WI] --- DONE ---');
41974197
41984198 return { worldInfoBefore, worldInfoAfter, EMEntries, WIDepthEntries, allActivatedEntries: new Set(allActivatedEntries.values()) };
41994199}
42004200
42014201/**