prorm API Reference
← Documentation
GitLab
Preparing search index...
types
CustomValidator
Type Alias CustomValidator
CustomValidator
:
(
value
:
any
,
options
?:
{
instance
?:
Model
;
model
?:
ModelStatic
<
any
>
;
field
?:
string
}
,
)
=>
boolean
|
void
|
Promise
<
boolean
|
void
>
Custom validator function type Returns true if valid, or throws an error if invalid
Type Declaration
(
value
:
any
,
options
?:
{
instance
?:
Model
;
model
?:
ModelStatic
<
any
>
;
field
?:
string
}
,
)
:
boolean
|
void
|
Promise
<
boolean
|
void
>
Parameters
value
:
any
Optional
options
:
{
instance
?:
Model
;
model
?:
ModelStatic
<
any
>
;
field
?:
string
}
Returns
boolean
|
void
|
Promise
<
boolean
|
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
← Documentation
GitLab
prorm API Reference
Loading...
Custom validator function type Returns true if valid, or throws an error if invalid