mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Change assert typing
This commit is contained in:
parent
81adab243b
commit
d4187418a2
1 changed files with 0 additions and 1 deletions
|
@ -112,7 +112,6 @@ declare function type<T>(value: T): string
|
|||
declare function typeof<T>(value: T): string
|
||||
|
||||
-- `assert` has a magic function attached that will give more detailed type information
|
||||
-- declare function assert<T>(value: T, errorMessage: string?): T
|
||||
declare assert: (<T>(value: T) -> (T)) & (<T>(value: T, errorMessage: string) -> (T, string))
|
||||
declare function error<T>(message: T, level: number?): never
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue