Skip to content

vue-qs v0.2.8


vue-qs / JsonValidator

Type Alias: JsonValidator<T> ​

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

Defined in: parsers.ts:341

Validates a parsed JSON value: either a function returning the value (or null / throwing when invalid), or a Standard Schema (Zod, Valibot, ArkType…).

Type Parameters ​

T ​

T

Released under the MIT License. Questions or ideas? Join the GitHub Discussions.