本页还没有译文
本页 11 段还没译成Español,下面显示的是英文原文。WithResult
还没翻译译自英文(tanstack.com)本页 11 段都还没译
type WithResult<TContext, TResult> = Prettify<Omit<TContext, "result" | "hasResult"> & Pick<TContext, "baseSchema" | "schema" | "fromSourceName"> & object>;Defined in: packages/db/src/query/builder/types.ts:1359
WithResult - Updates a context with a new result type after select()
This utility type is used internally when the select() method is called
to update the context with the projected result type. It preserves all
other context properties while replacing the result field.
Usage:
When select() is called, the query builder uses this type to create
a new context where result contains the shape of the selected fields.
The double Prettify ensures both the overall context and the nested
result type display cleanly in IDEs.
Type Parameters
TContext
TContext extends Context
TResult
TResult
AI 翻译查看英文原文