| 9 | export declare namespace StandardSchemaV1 { |
| 10 | /** The Standard Schema properties interface. */ |
| 11 | export interface Props<Input = unknown, Output = Input> { |
| 12 | /** The version number of the standard. */ |
| 13 | readonly version: 1; |
| 14 | /** The vendor name of the schema library. */ |
| 15 | readonly vendor: string; |
| 16 | /** Validates unknown input values. */ |
| 17 | readonly validate: ( |
| 18 | value: unknown, |
| 19 | options?: StandardSchemaV1.Options | undefined |
| 20 | ) => Result<Output> | Promise<Result<Output>>; |
| 21 | /** Inferred types associated with the schema. */ |
| 22 | readonly types?: Types<Input, Output> | undefined; |
| 23 | } |
| 24 | |
| 25 | /** The result interface of the validate function. */ |
| 26 | export type Result<Output> = SuccessResult<Output> | FailureResult; |
nothing calls this directly
no outgoing calls
no test coverage detected