UNPKG

@trpc/client

Version:

The tRPC client library

17 lines 660 B
import { n as Operation, u as TRPCLink } from "./types-BxbMkv6C.cjs"; import { AnyRouter } from "@trpc/server/unstable-core-do-not-import"; //#region src/links/splitLink.d.ts declare function splitLink<TRouter extends AnyRouter = AnyRouter>(opts: { condition: (op: Operation) => boolean; /** * The link to execute next if the test function returns `true`. */ true: TRPCLink<TRouter> | TRPCLink<TRouter>[]; /** * The link to execute next if the test function returns `false`. */ false: TRPCLink<TRouter> | TRPCLink<TRouter>[]; }): TRPCLink<TRouter>; //#endregion export { splitLink as t }; //# sourceMappingURL=splitLink-CJdcmEmS.d.cts.map