Preparing search index...
The search index is not available
Stedi SDK for JavaScript
Stedi SDK for JavaScript
@stedi/sdk-util-validation
LengthValidator
Class LengthValidator
Hierarchy
LengthValidator
Implements
SingleConstraintValidator
<
LengthCheckable
,
LengthValidationFailure
>
Index
Constructors
constructor
Properties
max?
min?
Methods
validate
has
Length
Constructors
constructor
new
Length
Validator
(
min
?:
number
, max
?:
number
)
:
LengthValidator
Parameters
Optional
min:
number
Optional
max:
number
Returns
LengthValidator
Properties
Private
Optional
Readonly
max
max
?:
number
Private
Optional
Readonly
min
min
?:
number
Methods
validate
validate
(
input
:
LengthCheckable
, path
:
string
)
:
LengthValidationFailure
Parameters
input:
LengthCheckable
path:
string
Returns
LengthValidationFailure
Static
Private
has
Length
has
Length
(
obj
:
any
)
:
obj
is
{
length
:
number
;
}
Parameters
obj:
any
Returns
obj
is
{
length
:
number
;
}
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
Length
Validator
constructor
max?
min?
validate
has
Length