# Type Alias: inferRouterContext<TRouter>

> 

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

Defined in: [packages/server/src/unstable-core-do-not-import/router.ts:220](https://github.com/trpc/trpc/blob/a357903312114c6c08952de2c9edc51c713367be/packages/server/src/unstable-core-do-not-import/router.ts#L220)

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) |
