mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-10-20 13:02:58 +08:00
chore: 同步 template 对 types 的修改
This commit is contained in:
parent
741ba164e9
commit
4d016c4610
2
src/types/declaration/core.d.ts
vendored
2
src/types/declaration/core.d.ts
vendored
@ -278,7 +278,7 @@ interface AnimateFrame {
|
||||
/**
|
||||
* 异步信息,想不到吧,这玩意是一个以number为索引的回调函数列表
|
||||
*/
|
||||
readonly asyncId: Record<number, () => void>;
|
||||
readonly asyncId: Record<number | symbol, () => void>;
|
||||
|
||||
/**
|
||||
* 上一个异步事件的id
|
||||
|
10
src/types/declaration/ui.d.ts
vendored
10
src/types/declaration/ui.d.ts
vendored
@ -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;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user