mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 07:26:02 +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}
|
---@field labels? {cancel?: string, confirm?: string}
|
||||||
|
|
||||||
---@param data AlertDialogProps
|
---@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
|
---@return 'cancel' | 'confirm' | nil
|
||||||
function lib.alertDialog(data, timeout)
|
function lib.alertDialog(data, timeout)
|
||||||
if alert then return end
|
if alert then return end
|
||||||
|
|||||||
Reference in New Issue
Block a user