Skip to content

Commit

Permalink
Re-export cache types from @apollo/client/core, again. (#6725)
Browse files Browse the repository at this point in the history
These types were lost in #6656 when I switched from

  export * from '../cache'

to using named exports. There are some @apollo/client/cache exports that I
wanted to omit from @apollo/client/core (like cacheSlot), but I definitely
did not intend to omit these types.

Fixes #6723.
  • Loading branch information
benjamn committed Jul 28, 2020
1 parent 824bbe7 commit 0cf607f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,29 @@ export { isApolloError, ApolloError } from '../errors';
/* Cache */

export {
// All the exports (types and values) from ../cache, minus cacheSlot,
// which we want to keep semi-private.
Cache,
ApolloCache,
Transaction,
DataProxy,
InMemoryCache,
InMemoryCacheConfig,
MissingFieldError,
defaultDataIdFromObject,
ReactiveVar,
makeVar,
TypePolicies,
TypePolicy,
FieldPolicy,
FieldReadFunction,
FieldMergeFunction,
FieldFunctionOptions,
PossibleTypesMap,
} from '../cache';

export * from '../cache/inmemory/types';

/* Link */

export * from '../link/core';
Expand Down

0 comments on commit 0cf607f

Please sign in to comment.