import * as typestruct from "https://deno.land/x/typestruct@1.0.0-beta.5/mod.ts";
Functions
f and | Create intersection struct. Ensure all structures satisfy. |
Create | |
Assert value with checkable. | |
Create | |
Create | |
Create empty struct. Empty means there are no elements. | |
f func | Create |
Create | |
f int | Create integer struct. Ensure the input is integer. |
f is | Whether the input satisfies struct or not. With type guard, inputs are type inferred. |
f list | Create list struct. List is array subtype. Ensure that all elements are same type. |
Create maximum struct. Ensure the input less than or equal to threshold. | |
Create max size struct. Sets the maximum number of elements. | |
Create minimum struct. Ensure the input grater than or equal to threshold. | |
Create min size struct. Sets the minimum number of elements. | |
f nan | Create |
Create negative number struct. Ensure the input is negative number. Negative number means a number less than zero. | |
Create non empty struct. Non empty meas there are more than one element. | |
Create negative value struct. Ensure the input is non-negative number. Non-negative number means greater than or equal to zero. | |
Create non-positive value struct. Ensure the input is non-positive number. Non-positive number means less than or equal to zero. | |
f not | Create inversion struct. Ensure the structure is not satisfied. |
Create nullable struct. Add | |
Create | |
Create object literal struct. Additional properties will ignore. | |
f omit | Create |
Create optional struct. Add | |
f or | Create union struct. |
Create | |
Create pattern struct. Ensure the input match to the pattern. | |
f pick | Create |
Create positive number struct. Ensure the input is positive number. Positive number means greater than zero. | |
Create | |
f size | Create size struct. Ensure the number of elements. |
Create | |
Create | |
Create tuple struct. Tuple is array subtype. Ensure that the position and type of the elements match. | |
Returns the checking result. If input satisfies struct, the | |
Create valid date struct. Ensure the input is valid date (non | |
Create primitive value struct. |
Interfaces
Checkable API. | |
Struct check options. | |
Context of constructor. | |
Context of data type. | |
Intersection type API. | |
Dynamic messenger API. | |
String Convertible API. | |
Dada struct API. | |
Union type API. | |
Wrapper container API. |
Type Aliases
JavaScript data type. | |
Validate result. |