函数: splitLink()
splitLink<
TRouter>(opts):TRPCLink<TRouter>
类型参数
| 参数 | 默认值 |
|---|---|
TRouter extends Router< any, any, TRouter> | AnyRouter |
参数
| 参数 | 类型 | 描述 |
|---|---|---|
opts | 对象 | - |
opts.condition | (op) => boolean | - |
opts.false | TRPCLink< TRouter> | TRPCLink< TRouter>[] | 如果测试函数返回 false,则执行的下一个链接。 |
opts.true | TRPCLink< TRouter> | TRPCLink< TRouter>[] | 如果测试函数返回 true,则执行的下一个链接。 |
返回值
TRPCLink< TRouter>
来源
packages/client/dist/links/splitLink.d.ts:3
使用 TypeDoc 和 typedoc-plugin-markdown 生成