API reference › @evolu/common › StandardSchema › StandardSchemaV1 › Props

Defined in: packages/common/src/StandardSchema.ts:84

The Standard Schema properties interface.

Extends

Properties

types?

readonly optional types?: Types<Input, Output>;

Defined in: packages/common/src/StandardSchema.ts:54

Inferred types associated with the schema.

Inherited from

Props.types


validate

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

Defined in: packages/common/src/StandardSchema.ts:89

Validates unknown input values.


vendor

readonly vendor: string;

Defined in: packages/common/src/StandardSchema.ts:52

The vendor name of the schema library.

Inherited from

Props.vendor


version

readonly version: 1;

Defined in: packages/common/src/StandardSchema.ts:50

The version number of the standard.

Inherited from

Props.version