Type guard for Standard Schema V1. Returns true if the value has a ~standard.validate
interface, indicating it can validate unknown values at runtime (e.g. for parsing LLM output).
isStandardSchema<Input = any, Output = Input>(
schema: unknown
): schema is StandardSchemaV1<Input, Output>| Name | Type | Description |
|---|---|---|
schema* | unknown |