Variable averyConst

avery: {
    array: <T>(validator: Validator<T, string[]>) => ArrayValidator<T>;
    boolean: () => BooleanValidator;
    number: () => NumberValidator;
    object: <
        S extends Record<string, Validator<unknown, unknown>>,
        T extends InferSchema<S> = InferSchema<S>,
    >(
        schema: S,
    ) => Validator<T, string[]>;
    string: () => StringValidator;
} = ...

The main entry point for creating schemas.

Type declaration