Skip to content
tRPC

Partners

Type Alias: inferRouterError<TRouter>

On this page

inferRouterError<TRouter>: inferRouterRootTypes<TRouter>["errorShape"]

Defined in: packages/server/src/unstable-core-do-not-import/router.ts:227

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

Type Parameters

Type Parameter
TRouter extends AnyTRPCRouter

See

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