# Type Alias: inferRouterContext<TRouter>

> 

> **inferRouterContext**\<`TRouter`\>: `inferRouterRootTypes`\<`TRouter`\>\[`"ctx"`\]

Defined in: [packages/server/src/unstable-core-do-not-import/router.ts:221](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/server/src/unstable-core-do-not-import/router.ts#L221)

The type of a router's context.

## Type Parameters

| Type Parameter |
| ------ |
| `TRouter` *extends* [`AnyTRPCRouter`](https://trpc.io/docs/typedoc/server/index/type-aliases/AnyTRPCRouter.md) |
