InferSelectResult
InferSelectResult<
TFields,TSelect> =TSelectextendsBoundQuery|Expr?unknown:TSelectextendsstring[] ?Partial<InferShapeFromFields<TFields>> :TSelectextendsobject?InferSelectResultFromFields<TFields,TSelect> :InferShapeFromFields<TFields>
Defined in: define/table/types/select.ts:283
Infers the complete result type from a select option.
Type Parameters
Section titled “Type Parameters”TFields
Section titled “TFields”TFields extends Record<string, FieldDefinition<unknown>>
The field definitions of the table.
TSelect
Section titled “TSelect”TSelect
The select option value.
- FieldSelect object → Precise type based on selection
- String array → Partial
- BoundQuery/Expr → unknown (or generic override)