Skip to content

JsonValidator

type JsonValidator<T> =
| StandardSchemaV1<unknown, T>
| ((value) => T);

Defined in: tanstack/core/built-in-parsers.ts:383

Runtime validator for parseAsJson: a Standard Schema or a function that returns the value or throws.

Type Parameter
T