Skip to content

toolmark-monorepo / @toolmark/core / StandardSchemaV1 / Props

Interface: Props<Input, Output> ​

Defined in: packages/core/src/standard-schema.ts:53

The Standard Schema properties interface.

Extends ​

Type Parameters ​

Input ​

Input = unknown

Output ​

Output = Input

Properties ​

types? ​

readonly optional types?: Types<Input, Output>

Defined in: packages/core/src/standard-schema.ts:28

Inferred types associated with the schema.

Inherited from ​

Props.types


validate ​

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

Defined in: packages/core/src/standard-schema.ts:55

Validates unknown input values.

Parameters ​

value ​

unknown

options? ​

Options

Returns ​

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


vendor ​

readonly vendor: string

Defined in: packages/core/src/standard-schema.ts:26

The vendor name of the schema library.

Inherited from ​

Props.vendor


version ​

readonly version: 1

Defined in: packages/core/src/standard-schema.ts:24

The version number of the standard.

Inherited from ​

Props.version