CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
splitLink.d-BKr9eE0o.d.mts20 linesDownload Raw Back to dist
1import { Operation, TRPCLink } from "./types.d-sRNtuQA-.mjs";2import { AnyRouter } from "@trpc/server/unstable-core-do-not-import";3 4//#region src/links/splitLink.d.ts5declare function splitLink<TRouter extends AnyRouter = AnyRouter>(opts: {6  condition: (op: Operation) => boolean;7  /**8   * The link to execute next if the test function returns `true`.9   */10  true: TRPCLink<TRouter> | TRPCLink<TRouter>[];11  /**12   * The link to execute next if the test function returns `false`.13   */14  false: TRPCLink<TRouter> | TRPCLink<TRouter>[];15}): TRPCLink<TRouter>;16//# sourceMappingURL=splitLink.d.ts.map17 18//#endregion19export { splitLink };20//# sourceMappingURL=splitLink.d-BKr9eE0o.d.mts.map