Change assert typing

This commit is contained in:
BizzarBlitz 2023-07-21 10:15:21 -04:00 committed by GitHub
parent 218159140c
commit 52b17e39cd
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,8 @@ 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 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
declare function tostring<T>(value: T): string