I
StandardSchemaV1
Vendored, dependency-free types for the
Standard Schema spec (v1).
Any validation library implementing the ~standard contract — zod, valibot,
arktype, … — is structurally assignable to StandardSchemaV1, so the
forms layer can accept them without taking on a dependency. The namespace
pattern from the official spec is flattened into named exports to stay within
the repo's lint rules.
Signature
ts
interface StandardSchemaV1<Input = unknown, Output = Input>Type Parameters
Input= unknownOutput= InputProperties
| Property | Type | Description |
|---|---|---|
'~standard'readonly | StandardSchemaProps<Input, Output> | The Standard Schema properties. |