UNPKG

@trpc/client

Version:

The tRPC client library

32 lines • 1.2 kB
import { h as FetchEsque } from "./types-DO-GCB2q.mjs"; import { n as TransformerOptions } from "./unstable-internals-CNoyg7Yf.mjs"; import { AnyClientTypes, CombinedDataTransformer, Maybe, PathSeparator, ProcedureType } from "@trpc/server/unstable-core-do-not-import"; //#region src/links/internals/httpUtils.d.ts /** * The options every HTTP link takes. * @internal */ type HTTPLinkBaseOptions<TRoot extends Pick<AnyClientTypes, 'transformer'>> = { /** The URL of your tRPC endpoint, such as `http://localhost:3000/trpc`. */ url: string | URL; /** * The `fetch` to use, if not the global one. */ fetch?: FetchEsque; /** * Sends every call as a POST, whatever its type. The server must set * `allowMethodOverride: true`. * @see https://trpc.io/docs/rpc#overriding-the-default-http-method */ methodOverride?: 'POST'; /** * The character between a procedure path's segments in URLs. Must match * the server's `pathSeparator`. * @default '.' * @see https://trpc.io/docs/rpc#path-separator */ pathSeparator?: PathSeparator; } & TransformerOptions<TRoot>; //#endregion export { HTTPLinkBaseOptions as t }; //# sourceMappingURL=httpUtils-BAwJ9mb3.d.mts.map