Fix undefined type references

af0939038b9cd15cc595d4734c5362047b0bc83e

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +5 -3Ignore whitespace
public/scripts/PromptManager.js+1 -1
@@ -4,7 +4,7 @@ import { DOMPurify, Popper } from '../lib.js';
44
5import { event_types, eventSource, is_send_press, main_api, substituteParams } from '../script.js';5import { event_types, eventSource, is_send_press, main_api, substituteParams } from '../script.js';
6import { is_group_generating } from './group-chats.js';6import { is_group_generating } from './group-chats.js';
7import { Message, TokenHandler } from './openai.js';7import { Message, MessageCollection, TokenHandler } from './openai.js';
8import { power_user } from './power-user.js';8import { power_user } from './power-user.js';
9import { debounce, waitUntilCondition, escapeHtml } from './utils.js';9import { debounce, waitUntilCondition, escapeHtml } from './utils.js';
10import { debounce_timeout } from './constants.js';10import { debounce_timeout } from './constants.js';
public/scripts/slash-commands.js+4 -2
@@ -75,6 +75,8 @@ import { SlashCommandBreakController } from './slash-commands/SlashCommandBreakC
75import { SlashCommandExecutionError } from './slash-commands/SlashCommandExecutionError.js';75import { SlashCommandExecutionError } from './slash-commands/SlashCommandExecutionError.js';
76import { slashCommandReturnHelper } from './slash-commands/SlashCommandReturnHelper.js';76import { slashCommandReturnHelper } from './slash-commands/SlashCommandReturnHelper.js';
77import { accountStorage } from './util/AccountStorage.js';77import { accountStorage } from './util/AccountStorage.js';
78import { SlashCommandDebugController } from './slash-commands/SlashCommandDebugController.js';
79import { SlashCommandScope } from './slash-commands/SlashCommandScope.js';
78export {80export {
79 executeSlashCommands, executeSlashCommandsWithOptions, getSlashCommandsHelp, registerSlashCommand,81 executeSlashCommands, executeSlashCommandsWithOptions, getSlashCommandsHelp, registerSlashCommand,
80};82};
@@ -4345,7 +4347,7 @@ const clearCommandProgressDebounced = debounce(clearCommandProgress);
4345 * @prop {boolean} [handleParserErrors] (true) Whether to handle parser errors (show toast on error) or throw.4347 * @prop {boolean} [handleParserErrors] (true) Whether to handle parser errors (show toast on error) or throw.
4346 * @prop {SlashCommandScope} [scope] (null) The scope to be used when executing the commands.4348 * @prop {SlashCommandScope} [scope] (null) The scope to be used when executing the commands.
4347 * @prop {boolean} [handleExecutionErrors] (false) Whether to handle execution errors (show toast on error) or throw4349 * @prop {boolean} [handleExecutionErrors] (false) Whether to handle execution errors (show toast on error) or throw
4348 * @prop {{[id:PARSER_FLAG]:boolean}} [parserFlags] (null) Parser flags to apply4350 * @prop {import('./slash-commands/SlashCommandParser.js').ParserFlags} [parserFlags] (null) Parser flags to apply
4349 * @prop {SlashCommandAbortController} [abortController] (null) Controller used to abort or pause command execution4351 * @prop {SlashCommandAbortController} [abortController] (null) Controller used to abort or pause command execution
4350 * @prop {SlashCommandDebugController} [debugController] (null) Controller used to control debug execution4352 * @prop {SlashCommandDebugController} [debugController] (null) Controller used to control debug execution
4351 * @prop {(done:number, total:number)=>void} [onProgress] (null) Callback to handle progress events4353 * @prop {(done:number, total:number)=>void} [onProgress] (null) Callback to handle progress events
@@ -4355,7 +4357,7 @@ const clearCommandProgressDebounced = debounce(clearCommandProgress);
4355/**4357/**
4356 * @typedef ExecuteSlashCommandsOnChatInputOptions4358 * @typedef ExecuteSlashCommandsOnChatInputOptions
4357 * @prop {SlashCommandScope} [scope] (null) The scope to be used when executing the commands.4359 * @prop {SlashCommandScope} [scope] (null) The scope to be used when executing the commands.
4358 * @prop {{[id:PARSER_FLAG]:boolean}} [parserFlags] (null) Parser flags to apply4360 * @prop {import('./slash-commands/SlashCommandParser.js').ParserFlags} [parserFlags] (null) Parser flags to apply
4359 * @prop {boolean} [clearChatInput] (false) Whether to clear the chat input textarea4361 * @prop {boolean} [clearChatInput] (false) Whether to clear the chat input textarea
4360 * @prop {string} [source] (null) String indicating where the code come from (e.g., QR name)4362 * @prop {string} [source] (null) String indicating where the code come from (e.g., QR name)
4361 */4363 */