Skip to content
GitHub

StandardSchemaV1Props

interface in meocord/interface Since 4.1.0

interface StandardSchemaV1Props<Input = unknown, Output = Input>

What a Standard Schema exposes under ~standard.

Members

version

readonly version: 1

The version of the specification, which is 1.

vendor

readonly vendor: string

The library the schema comes from.

validate

readonly validate: (
  value: unknown,
) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>>

Validates a value, synchronously or not.

types

readonly types?: { readonly input: Input; readonly output: Output } | undefined

Type information only; never present at runtime.

See also