# Override

<!-- DO NOT EDIT: this page is autogenerated from the type comments -->

```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:46](https://github.com/TanStack/query/blob/main/packages/query-core/src/types.ts#L46)

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`
