Interface: Router<TDef>
Type parameters
Parameter |
---|
TDef extends AnyRouterDef |
Properties
_def
_def:
TDef
Source
packages/server/src/core/router.ts:128
createCaller
createCaller:
RouterCaller
<TDef
>
Source
packages/server/src/core/router.ts:129
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 | "query" | "mutation" | "subscription" | "unknown" |
Returns
TDef
["_config"
][`"$types"`]["errorShape"
]
Source
packages/server/src/core/router.ts:135
Generated using TypeDoc and typedoc-plugin-markdown