本页还没有译文
本页 6 段还没译成Русский,下面显示的是英文原文。InferSchemaType
还没翻译译自英文(tanstack.com)本页 6 段都还没译
type InferSchemaType<T> = T extends StandardJSONSchemaV1<infer TInput, unknown> ? TInput : T extends StandardSchemaV1<infer TInput, unknown> ? TInput : unknown;Defined in: packages/ai/src/types.ts:186
Infer the TypeScript type from a schema.
For Standard JSON Schema compliant schemas, extracts the input type.
For Standard Schema validators (e.g. Zod's ~standard surface), extracts
the input type from the StandardSchemaV1 shape.
For plain JSONSchema, returns unknown since we can't infer types from
JSON Schema at compile time.
Type Parameters
T
T
AI 翻译查看英文原文