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

InferResultType.md

18 lines494 Bytes

type InferResultType<TContext> = TContext extends SingleResult ? GetResult<TContext> | undefined : GetResult<TContext>[];

Defined in: packages/db/src/query/builder/types.ts:1022

Utility type to infer the query result size (single row or an array)

Type Parameters

TContext

TContext extends Context