From a3becd99d1449c183b498f3015eb5c5bdd38ba44 Mon Sep 17 00:00:00 2001 From: Limon Monte <6059356+limonte@users.noreply.github.com> Date: Mon, 25 Sep 2023 16:33:25 +0300 Subject: [PATCH] fix(types): allow returning false from inputValidator --- sweetalert2.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sweetalert2.d.ts b/sweetalert2.d.ts index 2a6bc7461..3951e7f5e 100644 --- a/sweetalert2.d.ts +++ b/sweetalert2.d.ts @@ -1069,7 +1069,7 @@ declare module 'sweetalert2' { * * @default undefined */ - inputValidator?(inputValue: string, validationMessage?: string): SyncOrAsync + inputValidator?(inputValue: string, validationMessage?: string): SyncOrAsync /** * If you want to return the input value as `result.value` when denying the popup, set to `true`.