Skip to content

SudoSOS Back-end API / internal/spec / nonEmptyArray

Function: nonEmptyArray() ​

ts
function nonEmptyArray<T>(list): Promise<
  | Fail<ValidationError>
| Pass<T[]>>;

Type Parameters ​

Type Parameter
T

Parameters ​

ParameterType
listT[]

Returns ​

Promise< | Fail<ValidationError> | Pass<T[]>>