I
StandardSchemaProps
The properties carried on a schema's ~standard key.
Signature
ts
interface StandardSchemaProps<Input = unknown, Output = Input>Type Parameters
Input= unknownOutput= InputProperties
| Property | Type | Description |
|---|---|---|
versionreadonly | 1 | The version number of the standard. |
vendorreadonly | string | The 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?readonly | StandardSchemaTypes<Input, Output> | undefined | Inferred input/output types — present only at type level. |