Skip to content

Interface: StandardSchema<Output> ​

Defined in: api/rust-fetch.d.ts:374

The Standard Schema interface (https://standardschema.dev), implemented by Zod, Valibot, ArkType and others. rust-fetch depends on none of them.

Type Parameters ​

Output ​

Output = unknown

Properties ​

~standard ​

readonly ~standard: object

Defined in: api/rust-fetch.d.ts:375

types? ​

readonly optional types?: object

types.input ​

readonly input: unknown

types.output ​

readonly output: Output

validate ​

readonly validate: (value) => StandardSchemaResult<Output> | Promise<StandardSchemaResult<Output>>

Parameters ​
value ​

unknown

Returns ​

StandardSchemaResult<Output> | Promise<StandardSchemaResult<Output>>

vendor ​

readonly vendor: string

version ​

readonly version: 1

Released under the MIT or Apache-2.0 license.