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
Props<Input,Output>
Type Parameters
Input
Input = unknown
Output
Output = Input
Properties
types?
readonlyoptionaltypes?:Types<Input,Output>
Defined in: packages/core/src/standard-schema.ts:28
Inferred types associated with the schema.
Inherited from
validate
readonlyvalidate: (value,options?) =>Result<Output> |Promise<Result<Output>>
Defined in: packages/core/src/standard-schema.ts:55
Validates unknown input values.
Parameters
value
unknown
options?
Returns
Result<Output> | Promise<Result<Output>>
vendor
readonlyvendor:string
Defined in: packages/core/src/standard-schema.ts:26
The vendor name of the schema library.
Inherited from
version
readonlyversion:1
Defined in: packages/core/src/standard-schema.ts:24
The version number of the standard.