From 9ea2fdede776e1938b207c2a436dbc1b85258265 Mon Sep 17 00:00:00 2001 From: faizy#6969 <46767055+itsfaizy@users.noreply.github.com> Date: Sat, 18 May 2024 22:39:02 -0700 Subject: [PATCH] fix(alertDialog): set timeout as optional parameter (#580) --- resource/interface/client/alert.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/interface/client/alert.lua b/resource/interface/client/alert.lua index b56749c..76d42fc 100644 --- a/resource/interface/client/alert.lua +++ b/resource/interface/client/alert.lua @@ -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