@nospamproxy/core
Preparing search index...
common/validation/DebounceAsyncValidation
debounceAsyncValidation
Function debounceAsyncValidation
debounceAsyncValidation
<
TArgs
extends
unknown
[]
>
(
validate
:
(
...
args
:
TArgs
)
=>
Promise
<
boolean
>
,
delay
?:
number
,
)
:
(
...
args
:
TArgs
)
=>
Promise
<
boolean
>
Debounces an async validation function
This pretends, that validation was successful if another validation attempt is started during the initial delay.
Type Parameters
TArgs
extends
unknown
[]
Parameters
validate
:
(
...
args
:
TArgs
)
=>
Promise
<
boolean
>
delay
:
number
= 300
Returns
(
...
args
:
TArgs
)
=>
Promise
<
boolean
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@nospamproxy/core
Loading...
Debounces an async validation function