# ActionFetch (/docs/api/actions/type-aliases/ActionFetch)



```ts
type ActionFetch = (url, init) => Promise<Response>;
```

Narrower than the global `fetch`, which is assignable to it, so a stub needs no cast.

## Parameters [#parameters]

| Parameter | Type                                                              |
| --------- | ----------------------------------------------------------------- |
| `url`     | `string`                                                          |
| `init`    | [`ActionFetchInit`](/docs/api/actions/interfaces/ActionFetchInit) |

## Returns [#returns]

`Promise`\<`Response`>
