From d8c47d961f2ab1a74052f65afb794d1c011c58ff Mon Sep 17 00:00:00 2001 From: Ben Coullie Date: Sat, 14 Dec 2019 01:08:47 +1300 Subject: [PATCH] add assumeImmutableResults typing to apollo boost PresetConfig interface (#5571) * add assumeImmutableResults typing to apollo boost PresetConfig interface * Changelog update --- CHANGELOG.md | 3 +++ packages/apollo-boost/src/index.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61f69cf0c96..a1d56acb62d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,9 @@ - Replace `GlobalFetch` reference with `WindowOrWorkerGlobalScope`.
[@abdonrd](https://github.com/abdonrd) in [#5373](https://github.com/apollographql/apollo-client/pull/5373) +- Add `assumeImmutableResults` typing to apollo boost `PresetConfig` interface.
+ [@bencoullie](https://github.com/bencoullie) in [#5571](https://github.com/apollographql/apollo-client/pull/5571) + ## Apollo Client (2.6.4) diff --git a/packages/apollo-boost/src/index.ts b/packages/apollo-boost/src/index.ts index f2f32c3a211..0a8dc38c739 100644 --- a/packages/apollo-boost/src/index.ts +++ b/packages/apollo-boost/src/index.ts @@ -42,6 +42,7 @@ export interface PresetConfig { resolvers?: Resolvers | Resolvers[]; typeDefs?: string | string[] | DocumentNode | DocumentNode[]; fragmentMatcher?: LocalStateFragmentMatcher; + assumeImmutableResults?: boolean; } // Yes, these are the exact same as the `PresetConfig` interface. We're