SudoSOS Back-end API / helpers / validateSpecification
Function: validateSpecification() ​
ts
function validateSpecification<T, F>(target, specifications): Promise<Either<Joinable, T>>;Function that validates the given param against a specification.
Type Parameters ​
| Type Parameter |
|---|
T |
F extends Joinable |
Parameters ​
| Parameter | Type | Description |
|---|---|---|
target | T | Object to verify |
specifications | Specification<T, F> | Specification to use |