Skip to content

Commit

Permalink
fix(alertDialog): set timeout as optional parameter (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsfaizy authored May 19, 2024
1 parent c2efb22 commit 9ea2fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resource/interface/client/alert.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ea2fde

Please sign in to comment.