import * as abstruct from "https://deno.land/x/abstruct@1.0.0-beta.6/mod.ts";
Classes
c Err | Result of Error API. |
c Ok | Result of OK API. |
Validator for JavaScript data type. It executes | |
Validation error. | |
Validation failure. |
Variables
Empty validator. It checks the items is empty. | |
Factory for fixed array validator. It checks each item passes each Validator. | |
Float validator. | |
Validator factory equivalent to the | |
v int | Integer validator. |
v int8 | |
v key | Factory for property key validator. |
Negative number validator. | |
Non-Empty validator. It checks items is non-empty. | |
Non-negative number validator. | |
Non-positive number validator. | |
Nullish( | |
Factory for object validator. | |
v or | |
Positive number validator. | |
Single validator. It checks items is single. | |
Unique validator. It checks the each item is unique. | |
Valid | |
Factory for property value validator. |
Functions
f and | |
Assert with validator. | |
Factory for range validator. | |
Factory for count validator. It checks count(size, length) of items. | |
Factory for enumerator validator. | |
f eq | Validator factory equivalent to strict equality( |
f gt | Factory for validator equivalent to greater than( |
f gte | Factory for validator equivalent to greater than or equal( |
f has | Factory for existence of property validator. |
f item | Factory for item validator. It checks each item of items. |
f lazy | Crate validator lazily. |
f lt | Factory for validator equivalent to less than( |
f lte | Factory for validator equivalent to less than or equal to ( |
Factory for max count validator. It checks items count is less than or equal to limit. | |
Factory for min count validator. It checks items count is greater than or equal to limit. | |
f ne | Factory for validator equivalent to strict inequality( |
f not | Factory for validator inversion. |
Factory for regex pattern validator. | |
f type | Validator factory for JavaScript data type.
The difference with |
Interfaces
Assert options. | |
Greedy assert options. | |
Lazy assert options. | |
Validate options. | |
Validation context API. | |
Validation error options. | |
Validator API. |
Type Aliases
Constructor type. | |
String representation of JavaScript data type. |