Function: splitLink()
splitLink<
TRouter>(opts):TRPCLink<TRouter>
Type parameters
| Parameter | Default | 
|---|---|
TRouter extends Router< AnyRouterDef< AnyRootConfig >, TRouter > | AnyRouter | 
Parameters
| Parameter | Type | Description | 
|---|---|---|
opts | object | - | 
opts.condition | (op) => boolean | - | 
opts.false | TRPCLink< TRouter > | TRPCLink< TRouter >[] | The link to execute next if the test function returns false. | 
opts.true | TRPCLink< TRouter > | TRPCLink< TRouter >[] | The link to execute next if the test function returns true. | 
Returns
TRPCLink< TRouter >
Source
packages/client/dist/links/splitLink.d.ts:3
Generated using TypeDoc and typedoc-plugin-markdown