Fix some inaccuracies in typedefs

This commit is contained in:
Filip Tibell 2023-10-03 21:11:21 -05:00
parent f620f453f2
commit 414d8ff8f3
No known key found for this signature in database
3 changed files with 7 additions and 7 deletions

View file

@ -14,9 +14,9 @@
* https://github.com/Roblox/luau/blob/bd229816c0a82a8590395416c81c333087f541fd/Compiler/include/luacode.h#L13 * https://github.com/Roblox/luau/blob/bd229816c0a82a8590395416c81c333087f541fd/Compiler/include/luacode.h#L13
]=] ]=]
export type CompileOptions = { export type CompileOptions = {
optimizationLevel: number, optimizationLevel: number?,
coverageLevel: number, coverageLevel: number?,
debugLevel: number, debugLevel: number?,
} }
--[=[ --[=[

View file

@ -149,7 +149,9 @@ process.env = (nil :: any) :: { [string]: string? }
@param code The exit code to set @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 @within Process

View file

@ -55,13 +55,11 @@ end
Delays a thread or function to run after `duration` seconds. 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 @param functionOrThread The function or thread to delay
@return The thread that will be delayed @return The thread that will be delayed
]=] ]=]
function task.delay<T...>( function task.delay<T...>(
duration: number?, duration: number,
functionOrThread: thread | (T...) -> ...any, functionOrThread: thread | (T...) -> ...any,
...: T... ...: T...
): thread ): thread