import { PropertyValueValidator } from "https://deno.land/x/abstruct@1.0.0/mod.ts";
Property value validator. It checks to pass all property value.
Examples
Example 1
Example 1
import { PropertyValueValidator } from "https://deno.land/x/abstruct@$VERSION/validators/object/property_value.ts";
import { type Validator } from "https://deno.land/x/abstruct@$VERSION/types.ts";
declare const validator: Validator<string>;
const propValueValidator = new PropertyValueValidator(validator);
Methods
toString(): string
validate(input: Readonly<Record<string, T>>): Iterable<ValidationFailure>