@rbxts/types 1.0.604 → 1.0.605
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/include/lua.d.ts +14 -14
- package/package.json +1 -1
package/include/lua.d.ts
CHANGED
|
@@ -52,18 +52,18 @@ declare function pcall<T extends Array<any>, U>(
|
|
|
52
52
|
func: (...args: T) => U,
|
|
53
53
|
): LuaTuple<
|
|
54
54
|
U extends [infer A]
|
|
55
|
-
? [true, A] | [false,
|
|
55
|
+
? [true, A] | [false, unknown]
|
|
56
56
|
: U extends [infer A, infer B]
|
|
57
|
-
? [true, A, B] | [false,
|
|
57
|
+
? [true, A, B] | [false, unknown, undefined]
|
|
58
58
|
: U extends [infer A, infer B, infer C]
|
|
59
|
-
? [true, A, B, C] | [false,
|
|
59
|
+
? [true, A, B, C] | [false, unknown, undefined, undefined]
|
|
60
60
|
: U extends [infer A, infer B, infer C, infer D]
|
|
61
|
-
? [true, A, B, C, D] | [false,
|
|
61
|
+
? [true, A, B, C, D] | [false, unknown, undefined, undefined, undefined]
|
|
62
62
|
: U extends [infer A, infer B, infer C, infer D, infer E]
|
|
63
|
-
? [true, A, B, C, D, E] | [false,
|
|
63
|
+
? [true, A, B, C, D, E] | [false, unknown, undefined, undefined, undefined, undefined]
|
|
64
64
|
: U extends [infer A, infer B, infer C, infer D, infer E, infer F]
|
|
65
|
-
? [true, A, B, C, D, E, F] | [false,
|
|
66
|
-
: [true, U] | [false,
|
|
65
|
+
? [true, A, B, C, D, E, F] | [false, unknown, undefined, undefined, undefined, undefined, undefined]
|
|
66
|
+
: [true, U] | [false, unknown]
|
|
67
67
|
>;
|
|
68
68
|
|
|
69
69
|
/** Calls the function func with the given arguments in protected mode. This means that any error inside func is not propagated; instead, pcall catches the error and returns a status code. Its first result is the status code (a boolean), which is true if the call succeeds without errors. In such case, pcall also returns all results from the call, after this first result. In case of any error, pcall returns false plus the error message. */
|
|
@@ -72,18 +72,18 @@ declare function pcall<T extends Array<any>, U>(
|
|
|
72
72
|
...args: T
|
|
73
73
|
): LuaTuple<
|
|
74
74
|
U extends [infer A]
|
|
75
|
-
? [true, A] | [false,
|
|
75
|
+
? [true, A] | [false, unknown]
|
|
76
76
|
: U extends [infer A, infer B]
|
|
77
|
-
? [true, A, B] | [false,
|
|
77
|
+
? [true, A, B] | [false, unknown, undefined]
|
|
78
78
|
: U extends [infer A, infer B, infer C]
|
|
79
|
-
? [true, A, B, C] | [false,
|
|
79
|
+
? [true, A, B, C] | [false, unknown, undefined, undefined]
|
|
80
80
|
: U extends [infer A, infer B, infer C, infer D]
|
|
81
|
-
? [true, A, B, C, D] | [false,
|
|
81
|
+
? [true, A, B, C, D] | [false, unknown, undefined, undefined, undefined]
|
|
82
82
|
: U extends [infer A, infer B, infer C, infer D, infer E]
|
|
83
|
-
? [true, A, B, C, D, E] | [false,
|
|
83
|
+
? [true, A, B, C, D, E] | [false, unknown, undefined, undefined, undefined, undefined]
|
|
84
84
|
: U extends [infer A, infer B, infer C, infer D, infer E, infer F]
|
|
85
|
-
? [true, A, B, C, D, E, F] | [false,
|
|
86
|
-
: [true, U] | [false,
|
|
85
|
+
? [true, A, B, C, D, E, F] | [false, unknown, undefined, undefined, undefined, undefined, undefined]
|
|
86
|
+
: [true, U] | [false, unknown]
|
|
87
87
|
>;
|
|
88
88
|
|
|
89
89
|
/** Calls the function func with the given arguments in protected mode. This means that any error inside func is not propagated; instead, xpcall catches the error and returns a status code. Its first result is the status code (a boolean), which is true if the call succeeds without errors. In such case, xpcall also returns all results from the call, after this first result. In case of any error, pcall returns false plus the error message. */
|