Files
avz-site/node_modules/@trpc/client/dist/httpLink.d-CVOTlkUT.d.mts
T
2026-06-10 12:38:42 -03:00

23 lines
931 B
TypeScript

import { HTTPHeaders, Operation, TRPCLink } from "./types.d-sRNtuQA-.mjs";
import { HTTPLinkBaseOptions } from "./httpUtils.d-yYSKGhiS.mjs";
import { AnyClientTypes, AnyRouter } from "@trpc/server/unstable-core-do-not-import";
//#region src/links/httpLink.d.ts
type HTTPLinkOptions<TRoot extends AnyClientTypes> = HTTPLinkBaseOptions<TRoot> & {
/**
* Headers to be set on outgoing requests or a callback that of said headers
* @see http://trpc.io/docs/client/headers
*/
headers?: HTTPHeaders | ((opts: {
op: Operation;
}) => HTTPHeaders | Promise<HTTPHeaders>);
};
/**
* @see https://trpc.io/docs/client/links/httpLink
*/
declare function httpLink<TRouter extends AnyRouter = AnyRouter>(opts: HTTPLinkOptions<TRouter['_def']['_config']['$types']>): TRPCLink<TRouter>;
//# sourceMappingURL=httpLink.d.ts.map
//#endregion
export { HTTPLinkOptions, httpLink };
//# sourceMappingURL=httpLink.d-CVOTlkUT.d.mts.map