# Type Alias: inferRouterError<TRouter>

> 

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

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

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
