@graphql-codegen/typescript-urql-graphcache 2.2.7 → 2.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -182,7 +182,7 @@ const plugin = (schema, _documents, config) => {
182
182
  return {
183
183
  prepend: [imports],
184
184
  content: [
185
- `export type WithTypename<T extends { __typename?: any }> = { [K in Exclude<keyof T, '__typename'>]?: T[K] } & { __typename: NonNullable<T['__typename']> };`,
185
+ `export type WithTypename<T extends { __typename?: any }> = T & { __typename: NonNullable<T['__typename']> };`,
186
186
  keys,
187
187
  'export type GraphCacheResolvers = {\n' + resolvers.join(',\n') + '\n};',
188
188
  'export type GraphCacheOptimisticUpdaters = {\n ' +
package/index.mjs CHANGED
@@ -178,7 +178,7 @@ const plugin = (schema, _documents, config) => {
178
178
  return {
179
179
  prepend: [imports],
180
180
  content: [
181
- `export type WithTypename<T extends { __typename?: any }> = { [K in Exclude<keyof T, '__typename'>]?: T[K] } & { __typename: NonNullable<T['__typename']> };`,
181
+ `export type WithTypename<T extends { __typename?: any }> = T & { __typename: NonNullable<T['__typename']> };`,
182
182
  keys,
183
183
  'export type GraphCacheResolvers = {\n' + resolvers.join(',\n') + '\n};',
184
184
  'export type GraphCacheOptimisticUpdaters = {\n ' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-urql-graphcache",
3
- "version": "2.2.7",
3
+ "version": "2.2.10",
4
4
  "description": "GraphQL Code Generator plugin for generating a generic to be used in graphcache cache config",
5
5
  "peerDependencies": {
6
6
  "@urql/exchange-graphcache": "^4.1.1",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@graphql-codegen/plugin-helpers": "^2.4.0",
12
- "@graphql-codegen/visitor-plugin-common": "2.7.2",
12
+ "@graphql-codegen/visitor-plugin-common": "2.7.4",
13
13
  "auto-bind": "~4.0.0",
14
14
  "change-case-all": "1.0.14",
15
15
  "tslib": "~2.3.0"