From b193f2af9c27f0568cb7f3f61370e28035c05a05 Mon Sep 17 00:00:00 2001 From: Daniel K Date: Wed, 2 Jan 2019 21:44:54 +0100 Subject: [PATCH] Export isApolloError (#4223) * Export isApolloError * Changelog update --- CHANGELOG.md | 2 ++ packages/apollo-client/src/index.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67421e9a1e4..e244efd2888 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ - The `onClearStore` function can now be used to register callbacks that should be triggered when calling `clearStore`.
[@joe-re](https://github.com/joe-re) in [#4082](https://github.com/apollographql/apollo-client/pull/4082) +- Make `isApolloError` available for external use.
+ [@FredyC](https://github.com/FredyC) in [#4223](https://github.com/apollographql/apollo-client/pull/4223) - Documentation updates.
[@lifedup](https://github.com/lifedup) in [#3931](https://github.com/apollographql/apollo-client/pull/3931)
[@Dem0n3D](https://github.com/Dem0n3D) in [#4008](https://github.com/apollographql/apollo-client/pull/4008)
diff --git a/packages/apollo-client/src/index.ts b/packages/apollo-client/src/index.ts index db5a1e5f25c..359210cc94e 100644 --- a/packages/apollo-client/src/index.ts +++ b/packages/apollo-client/src/index.ts @@ -21,7 +21,7 @@ export { export { NetworkStatus } from './core/networkStatus'; export * from './core/types'; -export { ApolloError } from './errors/ApolloError'; +export { isApolloError, ApolloError } from './errors/ApolloError'; import ApolloClient, { ApolloClientOptions } from './ApolloClient';