File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,11 @@ declare const _VERSION: 'Lua 5.1' | 'Lua 5.2' | 'Lua 5.3' | 'Lua 5.4';
2525declare const _G : typeof globalThis ;
2626
2727/**
28- * Calls error if the value of its argument v is false (i.e., nil or false);
29- * otherwise, returns all its arguments. In case of error, message is the error
30- * object; when absent, it defaults to "assertion failed!"
31- * @tupleReturn
28+ * Calls error if the value of its argument `v` is false (i.e., nil or false);
29+ * otherwise, returns all its arguments. In case of error, `message` is the
30+ * error object; when absent, it defaults to "assertion failed!"
3231 */
33- declare function assert < T extends any [ ] > (
34- ...args : T
35- ) : { [ P in keyof T ] : P extends '0' ? Exclude < T [ P ] , false | null | undefined > : T [ P ] } ;
32+ declare function assert ( v : any , message ?: string ) : asserts v ;
3633
3734/**
3835 * This function is a generic interface to the garbage collector. It performs
You can’t perform that action at this time.
0 commit comments