function arrayValidatorWithInvalidElementTracking<T>(subValidator): (subject, invalidElements?, level) => subject is T[]
This validator functions the same as arrayValidator, with the option of passing in a map
which will track all of the elements that were found to be invalid.
Type parameters
| Type parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
subValidator | (p1, invalidElements?, level?) => p1 is T |
Returns
Function
Parameters
| Parameter | Type | Default value |
|---|---|---|
subject | unknown | undefined |
invalidElements? | Map<number, unknown[]> | undefined |
level? | number | 0 |
Returns
subject is T[]