R
I

StandardSchemaProps

The properties carried on a schema's `~standard` key.

Signature

ts
interface StandardSchemaProps<Input = unknown, Output = Input>

Type Parameters

Input= unknown
Output= Input

Properties

PropertyTypeDescription
versionreadonly1The version number of the standard.
vendorreadonlystringThe vendor name of the schema library (e.g. `'zod'`, `'valibot'`).
validatereadonly(value: unknown) => StandardSchemaResult<Output> | Promise<StandardSchemaResult<Output>>Validate an unknown value, returning its typed output or a list of issues.
types?readonlyStandardSchemaTypes<Input, Output> | undefinedInferred input/output types — present only at type level.