Interface: Router<TDef>
Type parameters
| Parameter |
|---|
TDef extends AnyRouterDef |
Properties
_def
_def:
TDef
Source
packages/server/src/core/router.ts:56
createCaller
createCaller:
RouterCaller<TDef>
Source
packages/server/src/core/router.ts:57
Methods
getErrorShape()
getErrorShape(
opts):TDef["_config"][`"$types"`]["errorShape"]
Deprecated
FIXME: use the new standalone getErrorShape instead
Parameters
| Parameter | 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"]
Source
packages/server/src/core/router.ts:63
Generated using TypeDoc and typedoc-plugin-markdown