@trpc/client
Version:
23 lines • 836 B
text/typescript
import { h as FetchEsque } from "./types-CAPs7vhA.mjs";
import { n as TransformerOptions } from "./unstable-internals-CE8gFBQ9.mjs";
import { AnyClientTypes, CombinedDataTransformer, Maybe, ProcedureType } from "@trpc/server/unstable-core-do-not-import";
//#region src/links/internals/httpUtils.d.ts
/**
* @internal
*/
type HTTPLinkBaseOptions<TRoot extends Pick<AnyClientTypes, 'transformer'>> = {
url: string | URL;
/**
* Add ponyfill for fetch
*/
fetch?: FetchEsque;
/**
* Send all requests `as POST`s requests regardless of the procedure type
* The HTTP handler must separately allow overriding the method. See:
* @see https://trpc.io/docs/rpc
*/
methodOverride?: 'POST';
} & TransformerOptions<TRoot>;
//#endregion
export { HTTPLinkBaseOptions as t };
//# sourceMappingURL=httpUtils-C37jRVnj.d.mts.map