Skip to main content

StrategyOptions

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

type StrategyOptions<T> = T extends DebounceStrategy ? DebounceStrategyOptions : T extends QueueStrategy ? QueueStrategyOptions : T extends ThrottleStrategy ? ThrottleStrategyOptions : T extends BatchStrategy ? BatchStrategyOptions : never;

Defined in: packages/db/src/strategies/types.ts:132

Extract the options type from a strategy

Type Parameters

T

T extends Strategy