chore: 同步 template 对 types 的修改

This commit is contained in:
unanmed 2025-10-15 18:20:32 +08:00
parent 741ba164e9
commit 4d016c4610
2 changed files with 6 additions and 6 deletions

View File

@ -278,7 +278,7 @@ interface AnimateFrame {
/**
* 异步信息,想不到吧,这玩意是一个以number为索引的回调函数列表
*/
readonly asyncId: Record<number, () => void>;
readonly asyncId: Record<number | symbol, () => void>;
/**
* 上一个异步事件的id

View File

@ -759,14 +759,14 @@ interface Ui {
textImage(content: string, lineHeight?: number): HTMLCanvasElement;
/**
* @deprecated 已失效,考虑换用新的渲染系统中的 `getChoices` 接口\
* 绘制一个选项界面
* @deprecated 可使用,考虑换用新的渲染系统中的 `getChoices` 接口\
* 绘制一个选项界面。不用 drawChoices 命名是为了避免录像验证问题。
*/
drawChoices(
drawChoices2(
content: string,
choices: object[],
width?: number,
ctx?: CtxRefer
noRoute?: CtxRefer
): void;
/**
@ -777,7 +777,7 @@ interface Ui {
text: string,
yesCallback?: () => void,
noCallback?: () => void,
ctx?: CtxRefer
noRoute?: boolean
): void;
/**