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为索引的回调函数列表 * number为索引的回调函数列表
*/ */
readonly asyncId: Record<number, () => void>; readonly asyncId: Record<number | symbol, () => void>;
/** /**
* id * id

View File

@ -759,14 +759,14 @@ interface Ui {
textImage(content: string, lineHeight?: number): HTMLCanvasElement; textImage(content: string, lineHeight?: number): HTMLCanvasElement;
/** /**
* @deprecated `getChoices` \ * @deprecated 使 `getChoices` \
* * drawChoices
*/ */
drawChoices( drawChoices2(
content: string, content: string,
choices: object[], choices: object[],
width?: number, width?: number,
ctx?: CtxRefer noRoute?: CtxRefer
): void; ): void;
/** /**
@ -777,7 +777,7 @@ interface Ui {
text: string, text: string,
yesCallback?: () => void, yesCallback?: () => void,
noCallback?: () => void, noCallback?: () => void,
ctx?: CtxRefer noRoute?: boolean
): void; ): void;
/** /**