mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-24 11:58:35 +00:00
fix(alertDialog): set timeout as optional parameter (#580)
This commit is contained in:
1 parent
c2efb22e38
commit
9ea2fdede7
1 file changed
+1
-1
@@ -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