Skip to main content
Version: 10.x

TRPCFetch

Function

Type declaration

The default fetch implementation has an overloaded signature. By convention this library only uses the overload taking a string and options object.

Signature

ts
(url: string, options?: RequestInit): Promise<ResponseEsque>;
ts
(url: string, options?: RequestInit): Promise<ResponseEsque>;

Parameters

NameType
urlstring
options?RequestInit

Returns

Promise<ResponseEsque>

Defined in: packages/client/src/links/types.ts:44