Skip to content

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 ​

ParameterTypeDescription
specSpecification<T, Joinable>-

Returns ​

ValidationRule<T[], Joinable>