UNPKG
robust-validator
Version:
latest (3.0.0)
3.0.0
2.2.1
2.2.0
2.1.1
2.1.0
2.0.1
2.0.0
2.0.0-rc-2
2.0.0-rc-1
1.1.1
1.1.0
1.0.2-canary-9
1.0.2-canary-8
1.0.2-canary-7
1.0.2-canary-6
1.0.2-canary-5
1.0.2-canary-4
1.0.2-canary-3
1.0.2-canary-2
1.0.2-canary-11
1.0.2-canary-10
1.0.2-canary-1
1.0.1
1.0.0
0.2.1
0.2.0
0.1.1
0.1.0
Rule-based data validation library
github.com/axe-api/validator
axe-api/validator
robust-validator
/
dist
/
helpers
/
validate.d.ts
4 lines
(3 loc)
•
246 B
TypeScript
View Raw
1
2
3
4
import
{
IValidationOptions
,
IValidationResult
}
from
"../Interface"
;
import
{
Definition
}
from
"../Types"
;
export
declare
const
validate
:
(
data
:
any
,
definition
:
Definition
,
options
?:
Partial
<
IValidationOptions
>
) =>
Promise
<
IValidationResult
>;