@trpc/client
Version:
32 lines • 1.2 kB
text/typescript
import { h as FetchEsque } from "./types-BrCJd1zp.cjs";
import { n as TransformerOptions } from "./unstable-internals-CNoyg7Yf.cjs";
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-CvL7UM_P.d.cts.map