Vinyl
    Preparing search index...

    Variable recordValidatorsConst

    recordValidators: {
        record<K extends string | symbol, V>(
            keyValidator: Validator<K>,
            valueValidator: Validator<V>,
        ): Validator<Record<K, V>, object>;
    } = ...

    Type declaration

    • record: function
      • Returns a validator that asserts that the object's own enumerable properties has keys and values that match their respective validators.

        Prototype members are not included. Numeric keys are validated as strings. For example the object { [0]: 1 } will be passed to the key validator as '0'.

        Type Parameters

        • K extends string | symbol
        • V

        Parameters

        Returns Validator<Record<K, V>, object>