function objectValidatorWithList<T>(validatorStructure): (subject, invalidFields?) => subject is DestructureGuardedTypeObj<T>
This validator functions the same as objectValidator, with the option of passing in a list
which will return all of the fields that were found to be invalid.
Type parameters
| Type parameter |
|---|
T extends object |
Parameters
| Parameter | Type |
|---|---|
validatorStructure | T |
Returns
Function
Parameters
| Parameter | Type |
|---|---|
subject | unknown |
invalidFields? | unknown[] |
Returns
subject is DestructureGuardedTypeObj<T>