SudoSOS Back-end API / helpers / createArrayRule
Function: createArrayRule() ​
ts
function createArrayRule<T>(spec): ValidationRule<T[], Joinable>;Turn a specification for an property into a specification for an array of that property.
Type Parameters ​
| Type Parameter |
|---|
T |
Parameters ​
| Parameter | Type | Description |
|---|---|---|
spec | Specification<T, Joinable> | - |
Returns ​
ValidationRule<T[], Joinable>