Skip to content

True Myth / standard-schema / StandardSchemaV1 / Props

Interface: Props<Input, Output> ​

The Standard Schema properties interface.

Type Parameters ​

Input ​

Input = unknown

Output ​

Output = Input

Properties ​

types? ​

readonly optional types?: Types<Input, Output>

Inferred types associated with the schema.


validate ​

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

Validates unknown input values.

Parameters ​

value ​

unknown

Returns ​

Result<Output> | Promise<Result<Output>>


vendor ​

readonly vendor: string

The vendor name of the schema library.


version ​

readonly version: 1

The version number of the standard.