From 93c4ad91a51473abea97639fa8722964f4dc8fa6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Abd=C3=B3n=20Rodr=C3=ADguez=20Davila?=
Date: Thu, 26 Sep 2019 10:53:44 +0200
Subject: [PATCH] Remove reference to GlobalFetch in Typescript
---
docs/source/get-started.mdx | 2 +-
packages/apollo-boost/src/index.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/source/get-started.mdx b/docs/source/get-started.mdx
index 0bdcb69bae1..e1a1bcc7b15 100644
--- a/docs/source/get-started.mdx
+++ b/docs/source/get-started.mdx
@@ -205,7 +205,7 @@ Here are the options you can pass to the `ApolloClient` exported from `apollo-bo
| `cacheRedirects` | Object | A map of functions to redirect a query to another entry in the cache before a request takes place. This is useful if you have a list of items and want to use the data from the list query on a detail page where you're querying an individual item. More on that here. |
| `credentials` | string | Is set to `same-origin` by default. This option can be used to indicate whether the user agent should send cookies with requests. See Request.credentials for more details. |
| `headers` | Object | Header key/value pairs to pass along with the request. |
-| `fetch` | GlobalFetch['fetch'] | A `fetch` compatible API for making a request. |
+| `fetch` | WindowOrWorkerGlobalScope['fetch'] | A `fetch` compatible API for making a request. |
| `cache` | ApolloCache | A custom instance of `ApolloCache` to be used. The default value is `InMemoryCache` from `apollo-cache-inmemory`. This option is quite useful for using a custom cache with `apollo-cache-persist`. |
## Next steps
diff --git a/packages/apollo-boost/src/index.ts b/packages/apollo-boost/src/index.ts
index a7c134f0d6f..f2f32c3a211 100644
--- a/packages/apollo-boost/src/index.ts
+++ b/packages/apollo-boost/src/index.ts
@@ -31,7 +31,7 @@ export interface PresetConfig {
uri?: string | UriFunction;
credentials?: string;
headers?: any;
- fetch?: GlobalFetch['fetch'];
+ fetch?: WindowOrWorkerGlobalScope['fetch'];
fetchOptions?: HttpLink.Options;
clientState?: ClientStateConfig;
onError?: ErrorLink.ErrorHandler;