diff --git a/types/luau.luau b/types/luau.luau index 132808d..189254b 100644 --- a/types/luau.luau +++ b/types/luau.luau @@ -14,9 +14,9 @@ * https://github.com/Roblox/luau/blob/bd229816c0a82a8590395416c81c333087f541fd/Compiler/include/luacode.h#L13 ]=] export type CompileOptions = { - optimizationLevel: number, - coverageLevel: number, - debugLevel: number, + optimizationLevel: number?, + coverageLevel: number?, + debugLevel: number?, } --[=[ diff --git a/types/process.luau b/types/process.luau index c9d738e..3c89e62 100644 --- a/types/process.luau +++ b/types/process.luau @@ -149,7 +149,9 @@ process.env = (nil :: any) :: { [string]: string? } @param code The exit code to set ]=] -function process.exit(code: number?) end +function process.exit(code: number?): never + return nil :: any +end --[=[ @within Process diff --git a/types/task.luau b/types/task.luau index 924e6bb..81bdc2f 100644 --- a/types/task.luau +++ b/types/task.luau @@ -55,13 +55,11 @@ end Delays a thread or function to run after `duration` seconds. - If no `duration` is given, this will wait for the minimum amount of time possible. - @param functionOrThread The function or thread to delay @return The thread that will be delayed ]=] function task.delay( - duration: number?, + duration: number, functionOrThread: thread | (T...) -> ...any, ...: T... ): thread