# Function: getFetch()

> 

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

Defined in: [packages/client/src/getFetch.ts:11](https://github.com/trpc/trpc/blob/57482b0bb09dce5c838dc8bf5727a943488bac61/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`
