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

StrategyOptions.md

20 lines587 Bytes

Type Alias: StrategyOptions<T>

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:122

Extract the options type from a strategy

Type Parameters

T

T extends Strategy