mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Clean up typedefs file
This commit is contained in:
parent
adc503d6ae
commit
1e7cbc4062
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue