Interface: StandardSchemaProps<Input, Output>

The Standard Schema properties interface.

Type Parameters

Input = unknown

Output = Input

Properties

types?

readonly optional types: StandardTypes<Input, Output>

Inferred types associated with the schema.

Defined in

node_modules/.pnpm/@standard-schema+spec@1.0.0-beta.3/node_modules/@standard-schema/spec/dist/index.d.ts:30


validate()

readonly validate: (value) => StandardResult<Output> | Promise<StandardResult<Output>>

Validates unknown input values.

Parameters

value: unknown

Returns

StandardResult<Output> | Promise<StandardResult<Output>>

Defined in

node_modules/.pnpm/@standard-schema+spec@1.0.0-beta.3/node_modules/@standard-schema/spec/dist/index.d.ts:26


vendor

readonly vendor: string

The vendor name of the schema library.

Defined in

node_modules/.pnpm/@standard-schema+spec@1.0.0-beta.3/node_modules/@standard-schema/spec/dist/index.d.ts:22


version

readonly version: 1

The version number of the standard.

Defined in

node_modules/.pnpm/@standard-schema+spec@1.0.0-beta.3/node_modules/@standard-schema/spec/dist/index.d.ts:18