Skip to content

Commit

Permalink
fix(types): allow returning false from inputValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Sep 25, 2023
1 parent 6e7915f commit a3becd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sweetalert2.d.ts
Expand Up @@ -1069,7 +1069,7 @@ declare module 'sweetalert2' {
*
* @default undefined
*/
inputValidator?(inputValue: string, validationMessage?: string): SyncOrAsync<string | null | void>
inputValidator?(inputValue: string, validationMessage?: string): SyncOrAsync<string | null | false | void>

/**
* If you want to return the input value as `result.value` when denying the popup, set to `true`.
Expand Down

0 comments on commit a3becd9

Please sign in to comment.