Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

BaseValidator.md

55 lines1.2 KB

Defined in: validation.public.ts:17

A validation function or Standard Schema with an optional rule to stop after earlier failures.

Extended by

Type Parameters

TValidator

TValidator extends | StandardSchemaV1 | ValidatorFn<any, any>

Library-managed. Do not specify explicitly.

Properties

bailIfInvalid?

optional bailIfInvalid?: boolean;

Defined in: validation.public.ts:29

If true, skips this and subsequent validators when earlier validation has failed.

If false, earlier failures do not prevent this validator from running.

Default

false

run

run: TValidator;

Defined in: validation.public.ts:21

The function or Standard Schema that validates the value in this validator's scope.