Clean up typedefs file

This commit is contained in:
Filip Tibell 2023-02-11 23:38:47 +01:00
parent adc503d6ae
commit 1e7cbc4062
No known key found for this signature in database

View file

@ -153,7 +153,7 @@ export type NetResponse = {
body: string?, body: string?,
} }
type NetServeHttpHandler = (request: NetRequest) -> (string | NetResponse) type NetServeHttpHandler = (request: NetRequest) -> string | NetResponse
type NetServeWebSocketHandler = (socket: NetWebSocket) -> () type NetServeWebSocketHandler = (socket: NetWebSocket) -> ()
export type NetServeConfig = { export type NetServeConfig = {
@ -168,7 +168,7 @@ export type NetServeHandle = {
declare class NetWebSocket declare class NetWebSocket
close: () -> () close: () -> ()
send: (message: string) -> () send: (message: string) -> ()
next: () -> (string?) next: () -> string?
function __iter(self): () -> string function __iter(self): () -> string
end end
@ -368,7 +368,7 @@ declare stdio: {
@param ... The values to format @param ... The values to format
@return The formatted string @return The formatted string
]=] ]=]
format: (...any) -> (string), format: (...any) -> string,
--[=[ --[=[
@within stdio @within stdio
@ -461,7 +461,7 @@ declare task: {
@param duration The amount of time to wait @param duration The amount of time to wait
@return The exact amount of time waited @return The exact amount of time waited
]=] ]=]
wait: (duration: number?) -> (number), wait: (duration: number?) -> number,
} }
-- TODO: Write docs for these and include them in docs gen -- TODO: Write docs for these and include them in docs gen