rulvar API reference / @rulvar/core / StandardSchemaV1 / Props
Interface: Props<Input, Output>
Defined in: packages/core/src/vendor/standard-schema.d.ts:48
The Standard Schema properties interface.
Extends
Props<Input,Output>
Type Parameters
| Type Parameter | Default type |
|---|---|
Input | unknown |
Output | Input |
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
types? | readonly | Types<Input, Output> | Inferred types associated with the schema. | StandardTypedV1.Props.types | packages/core/src/vendor/standard-schema.d.ts:23 |
validate | readonly | (value, options?) => | Result<Output> | Promise<Result<Output>> | Validates unknown input values. | - | packages/core/src/vendor/standard-schema.d.ts:50 |
vendor | readonly | string | The vendor name of the schema library. | StandardTypedV1.Props.vendor | packages/core/src/vendor/standard-schema.d.ts:21 |
version | readonly | 1 | The version number of the standard. | StandardTypedV1.Props.version | packages/core/src/vendor/standard-schema.d.ts:19 |