Variable objectValidatorsConst
objectValidators: { withProps<U>(propertyValidators: { readonly [P in string | number | symbol]-?: Validator<U[P], unknown> }): ValidatorWithPartial<U, object>; } = ... Type declaration
withProps:function
- withProps<U>(propertyValidators): ValidatorWithPartial<U, object>
Parameters
- propertyValidators: {
readonly [P in string | number | symbol]-?: Validator<U[P], unknown>
}
Creates a validator that validates the input has properties that pass their respective validators.