# Function: getFetch()

> 

> **getFetch**(`customFetchImpl`?): `FetchEsque`

Defined in: [packages/client/src/getFetch.ts:11](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/getFetch.ts#L11)

The `fetch` to use: `customFetchImpl` if given, or else the global one.
Throws if there's none.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `customFetchImpl`? | `FetchEsque` \| `NativeFetchEsque` |

## Returns

`FetchEsque`
