# Interface: DecorateRouterKeyable<TFeatureFlags>

> 

Defined in: [tanstack-react-query/src/internals/createOptionsProxy.ts:55](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/tanstack-react-query/src/internals/createOptionsProxy.ts#L55)

Key and filter helpers for a router path.

## Extended by

- [`DecorateQueryProcedure`](https://trpc.io/docs/typedoc/tanstack-react-query/interfaces/DecorateQueryProcedure.md)

## Type Parameters

| Type Parameter |
| ------ |
| `TFeatureFlags` *extends* [`FeatureFlags`](https://trpc.io/docs/typedoc/tanstack-react-query/type-aliases/FeatureFlags.md) |

## Properties

### pathFilter()

> **pathFilter**: (`filters`?) => `WithRequired`\<`QueryFilters`\<[`TRPCQueryKey`](https://trpc.io/docs/typedoc/tanstack-react-query/type-aliases/TRPCQueryKey.md)\<`TFeatureFlags`\[`"keyPrefix"`\]\>\>, `"queryKey"`\>

Defined in: [tanstack-react-query/src/internals/createOptionsProxy.ts:70](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/tanstack-react-query/src/internals/createOptionsProxy.ts#L70)

Calculate a TanStack Query Filter for any path, could be used to manipulate every procedure beneath this path

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `filters`? | `QueryFilters`\<[`TRPCQueryKey`](https://trpc.io/docs/typedoc/tanstack-react-query/type-aliases/TRPCQueryKey.md)\<`TFeatureFlags`\[`"keyPrefix"`\]\>\> |

#### Returns

`WithRequired`\<`QueryFilters`\<[`TRPCQueryKey`](https://trpc.io/docs/typedoc/tanstack-react-query/type-aliases/TRPCQueryKey.md)\<`TFeatureFlags`\[`"keyPrefix"`\]\>\>, `"queryKey"`\>

#### See

 - https://tanstack.com/query/latest/docs/framework/react/guides/filters
 - https://trpc.io/docs/client/tanstack-react-query/usage#queryFilter

***

### pathKey()

> **pathKey**: () => [`TRPCQueryKey`](https://trpc.io/docs/typedoc/tanstack-react-query/type-aliases/TRPCQueryKey.md)\<`TFeatureFlags`\[`"keyPrefix"`\]\>

Defined in: [tanstack-react-query/src/internals/createOptionsProxy.ts:62](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/tanstack-react-query/src/internals/createOptionsProxy.ts#L62)

Calculate the TanStack Query Key for any path, could be used to invalidate every procedure beneath this path

#### Returns

[`TRPCQueryKey`](https://trpc.io/docs/typedoc/tanstack-react-query/type-aliases/TRPCQueryKey.md)\<`TFeatureFlags`\[`"keyPrefix"`\]\>

#### See

 - https://tanstack.com/query/latest/docs/framework/react/guides/query-keys
 - https://trpc.io/docs/client/tanstack-react-query/usage#queryKey
