mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
fix(alertDialog): set timeout as optional parameter (#580)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user