Router<TDef>
Type parameters
TDef
extendsAnyRouterDef
Properties
_def
TDef
Defined in: packages/server/src/core/router.ts:128
createCaller
RouterCaller
<TDef
>
Defined in: packages/server/src/core/router.ts:129
Methods
getErrorShape()
Signature
ts
getErrorShape(opts: object): TDef["_config"]["$types"]["errorShape"];
ts
getErrorShape(opts: object): TDef["_config"]["$types"]["errorShape"];
Parameters
Name | Type |
---|---|
opts | object |
opts.ctx | undefined | TDef ["_config" ][`"$types"`]["ctx" ] |
opts.error | TRPCError |
opts.input | unknown |
opts.path | undefined | string |
opts.type | "unknown" | "query" | "mutation" | "subscription" |
Returns
TDef
["_config"
][`"$types"`]["errorShape"
]
Defined in: packages/server/src/core/router.ts:131