Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

InferSchemaInput.md

24 lines565 Bytes

Type Alias: InferSchemaInput<T>

type InferSchemaInput<T> = T extends StandardSchemaV1 ? StandardSchemaV1.InferInput<T> extends object ? StandardSchemaV1.InferInput<T> : Record<string, unknown> : Record<string, unknown>;

Defined in: packages/db/src/types.ts:58

Internal

Helper type to extract the input type from a standard schema

This is used for collection insert type inference

Type Parameters

T

T