Search
Preparing search index...
The search index is not available
Retirement Simulator - v0.1.2
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Retirement Simulator - v0.1.2
validate
Module validate
Index
Type aliases
Validation
Spec
Functions
validator
Type aliases
Validation
Spec
Validation
Spec<T>
:
{
[
k
in
keyof
T
&
string
]
:
TypeCoercion
<
T
[
k
]
>
}
Type parameters
T
:
any
Functions
Const
validator
validator<T>
(
spec
:
ValidationSpec
<
T
>
)
:
(
obj
:
any
)
=>
T
Type parameters
T
Parameters
spec:
ValidationSpec
<
T
>
A specification of the validation/coercion to be performed.
Returns
(
obj
:
any
)
=>
T
(
obj
:
any
)
:
T
Parameters
obj:
any
Returns
T
Modules
validate
Validation
Spec
validator
Generated using
TypeDoc
A specification of the validation/coercion to be performed.