Skip to content

Remove as const to match apollo-client type for InMemoryCache#9

Open
ksrb wants to merge 1 commit intohomebound-team:mainfrom
ksrb:ksrb/removeConst
Open

Remove as const to match apollo-client type for InMemoryCache#9
ksrb wants to merge 1 commit intohomebound-team:mainfrom
ksrb:ksrb/removeConst

Conversation

@ksrb
Copy link
Copy Markdown

@ksrb ksrb commented Apr 27, 2022

The underlying type for possibleTypes is not a read only map so this is causing a type conflict when used with InMemoryCache.

https://github.com/apollographql/apollo-client/blob/v3.6.0/src/cache/inmemory/policies.ts#L276-L278

export type PossibleTypesMap = {
  [supertype: string]: string[];
};

@ksrb ksrb changed the title Remove as const to match apollo-client type for inmemory cache Remove as const to match apollo-client type for InMemoryCache Apr 27, 2022
@ksrb ksrb force-pushed the ksrb/removeConst branch from ce85b61 to 6c35ee4 Compare April 27, 2022 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant