Skip to content

Commit

Permalink
fix definition files. [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Dec 30, 2023
1 parent d45dd95 commit 02aa261
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Assets/Script/Lib/Dora/en/ImGui.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ export function BulletItem(this: void): void;
export function Button(this: void, label: string, size?: Vec2): boolean;
export function SmallButton(this: void, label: string): boolean;
export function InvisibleButton(this: void, str_id: string, size: Vec2): boolean;
export function Checkbox(this: void, label: string, p_v: boolean): [boolean, boolean];
export function RadioButton(this: void, label: string, p_v: number, v_button: number): [boolean, number];
export function Checkbox(this: void, label: string, p_v: boolean): LuaMultiReturn<[boolean, boolean]>;
export function RadioButton(this: void, label: string, p_v: number, v_button: number): LuaMultiReturn<[boolean, number]>;
export function RadioButton(this: void, label: string, active: boolean): boolean;
export function PlotLines(
this: void,
Expand Down Expand Up @@ -530,15 +530,15 @@ export function ListBox(
current_item: number,
items: string[],
height_in_items?: number
): [boolean, number];
): LuaMultiReturn<[boolean, number]>;

export function SliderAngle(
this: void,
label: string,
p_rad: number,
v_degrees_min?: number,
v_degrees_max?: number
): [boolean, number];
): LuaMultiReturn<[boolean, number]>;

export function TreeNode(this: void, label: string, inside: () => boolean): boolean;
export function TreeNode(this: void, str_id: string, text: string, inside: () => boolean): boolean;
Expand Down
4 changes: 3 additions & 1 deletion Assets/Script/Lib/Dora/en/dora.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3764,7 +3764,7 @@ interface ModelClass {
* Can be filename with or without extension like: "Model/item" or "Model/item.model".
* @returns A new instance of 'Model'.
*/
(filename: string): Model;
(this: void, filename: string): Model;
}

const modelClass: ModelClass;
Expand Down Expand Up @@ -5802,3 +5802,5 @@ export {view as View};
export type VGPaintType = BasicType<"VGPaint">;

} // module "dora"

declare function p(this: void, ...args: any[]): void;
8 changes: 4 additions & 4 deletions Assets/Script/Lib/Dora/zh-Hans/ImGui.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ export function BulletItem(this: void): void;
export function Button(this: void, label: string, size?: Vec2): boolean;
export function SmallButton(this: void, label: string): boolean;
export function InvisibleButton(this: void, str_id: string, size: Vec2): boolean;
export function Checkbox(this: void, label: string, p_v: boolean): [boolean, boolean];
export function RadioButton(this: void, label: string, p_v: number, v_button: number): [boolean, number];
export function Checkbox(this: void, label: string, p_v: boolean): LuaMultiReturn<[boolean, boolean]>;
export function RadioButton(this: void, label: string, p_v: number, v_button: number): LuaMultiReturn<[boolean, number]>;
export function RadioButton(this: void, label: string, active: boolean): boolean;
export function PlotLines(
this: void,
Expand Down Expand Up @@ -530,15 +530,15 @@ export function ListBox(
current_item: number,
items: string[],
height_in_items?: number
): [boolean, number];
): LuaMultiReturn<[boolean, number]>;

export function SliderAngle(
this: void,
label: string,
p_rad: number,
v_degrees_min?: number,
v_degrees_max?: number
): [boolean, number];
): LuaMultiReturn<[boolean, number]>;

export function TreeNode(this: void, label: string, inside: () => boolean): boolean;
export function TreeNode(this: void, str_id: string, text: string, inside: () => boolean): boolean;
Expand Down
4 changes: 3 additions & 1 deletion Assets/Script/Lib/Dora/zh-Hans/dora.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3764,7 +3764,7 @@ interface ModelClass {
* Can be filename with or without extension like: "Model/item" or "Model/item.model".
* @returns A new instance of 'Model'.
*/
(filename: string): Model;
(this: void, filename: string): Model;
}

const modelClass: ModelClass;
Expand Down Expand Up @@ -5802,3 +5802,5 @@ export {view as View};
export type VGPaintType = BasicType<"VGPaint">;

} // module "dora"

declare function p(this: void, ...args: any[]): void;

0 comments on commit 02aa261

Please sign in to comment.