Skip to main content

AggregationResult

还没翻译译自英文(tanstack.com)本页 8 段都还没译

type AggregationResult<TOption, TFeatures> = TOption extends ReadonlyArray<infer TEntry> ? { [TKey in AggregationEntryId<TEntry>]: AggregationResultOfRef<AggregationEntryDefinition<Extract<TEntry, TKey | { id: TKey }>>, TFeatures> } : AggregationResultOfRef<TOption, TFeatures>;

Defined in: features/row-aggregation/rowAggregationFeature.types.ts:184

Infers the scalar or keyed result produced by an aggregation option.

Type Parameters

TOption

TOption

TFeatures

TFeatures extends TableFeatures = any