objectValidatorWithList

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

ParameterType
validatorStructureT

Returns

Function

Parameters

ParameterType
subjectunknown
invalidFields?unknown[]

Returns

subject is DestructureGuardedTypeObj<T>