TanStack
API Reference

Override

ts
type Override<TTargetA, TTargetB> = { [AKey in keyof TTargetA]: AKey extends keyof TTargetB ? TTargetB[AKey] : TTargetA[AKey] };

Defined in: packages/query-core/src/types.ts:45

Replaces the types of the properties of TTargetA that also exist in TTargetB with their types in TTargetB. Properties that only exist in TTargetB are not added.

Type Parameters

TTargetA

TTargetA

TTargetB

TTargetB