fix(alertDialog): set timeout as optional parameter (#580)

This commit is contained in:
faizy#6969
2024-05-18 22:39:02 -07:00
committed by GitHub
parent c2efb22e38
commit 9ea2fdede7

View File

@@ -12,7 +12,7 @@ local alertId = 0
---@field labels? {cancel?: string, confirm?: string}
---@param data AlertDialogProps
---@param timeout number Force the window to timeout after `x` milliseconds.
---@param timeout? number Force the window to timeout after `x` milliseconds.
---@return 'cancel' | 'confirm' | nil
function lib.alertDialog(data, timeout)
if alert then return end