Skip to content

Commit 1157c63

Browse files
authored
Fix return type for table.unpack (#44)
1 parent ad475f6 commit 1157c63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

special/5.1-or-jit.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ declare function collectgarbage(opt: 'count'): number;
1919
* elements. By default, i is 1 and j is the length of the list, as defined by
2020
* the length operator (see §2.5.5).
2121
*/
22-
declare function unpack<T extends any[]>(list: T): LuaMultiReturn<T[]>;
22+
declare function unpack<T extends any[]>(list: T): LuaMultiReturn<T>;
2323
declare function unpack<T>(list: T[], i: number, j?: number): LuaMultiReturn<T[]>;
2424

2525
/**

special/5.2-plus.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ declare namespace table {
9494
*
9595
* By default, i is 1 and j is #list.
9696
*/
97-
function unpack<T extends any[]>(list: T): LuaMultiReturn<T[]>;
97+
function unpack<T extends any[]>(list: T): LuaMultiReturn<T>;
9898
function unpack<T>(list: T[], i: number, j?: number): LuaMultiReturn<T[]>;
9999

100100
/**

0 commit comments

Comments
 (0)