mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 13:21:38 +00:00
Fix type signature
This commit is contained in:
parent
9444c84d73
commit
a38147973a
1 changed files with 1 additions and 1 deletions
|
|
@ -396,7 +396,7 @@ function API.new(app)
|
||||||
function Rojo:Notify(
|
function Rojo:Notify(
|
||||||
msg: string,
|
msg: string,
|
||||||
timeout: number?,
|
timeout: number?,
|
||||||
actions: { [string]: { text: string, style: string, layoutOrder: number, onClick: (any) -> () } }?
|
actions: { [string]: { text: string, style: string, layoutOrder: number, onClick: () -> () } }?
|
||||||
): () -> ()
|
): () -> ()
|
||||||
assert(type(msg) == "string", "Message must be type `string`")
|
assert(type(msg) == "string", "Message must be type `string`")
|
||||||
assert(type(timeout) == "number" or timeout == nil, "Timeout must be type `number?`")
|
assert(type(timeout) == "number" or timeout == nil, "Timeout must be type `number?`")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue