mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 04:50:36 +00:00
Fix some inaccuracies in typedefs
This commit is contained in:
parent
f620f453f2
commit
414d8ff8f3
3 changed files with 7 additions and 7 deletions
|
@ -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?,
|
||||
}
|
||||
|
||||
--[=[
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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<T...>(
|
||||
duration: number?,
|
||||
duration: number,
|
||||
functionOrThread: thread | (T...) -> ...any,
|
||||
...: T...
|
||||
): thread
|
||||
|
|
Loading…
Reference in a new issue