Variable objectValidatorsConst

objectValidators: {
    withProps<U>(propertyValidators: {
        readonly [P in string | number | symbol]-?: Validator<U[P], unknown>
    }): ValidatorWithPartial<U, object>;
} = ...

Type declaration

  • withProps:function
    • Creates a validator that validates the input has properties that pass their respective validators.

      Type Parameters

      • U extends object

      Parameters

      • propertyValidators: {
            readonly [P in string | number | symbol]-?: Validator<U[P], unknown>
        }

      Returns ValidatorWithPartial<U, object>