# Type Alias: inferRouterError<TRouter>

> 

> **inferRouterError**\<`TRouter`\>: `inferRouterRootTypes`\<`TRouter`\>\[`"errorShape"`\]

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

The shape of a router's errors, as its error formatter returns them.

## Type Parameters

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

## See

https://trpc.io/docs/server/error-formatting
