@isograph/react 0.0.0-main-e3630229 → 0.0.0-main-55835e62

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.
package/dist/read.js CHANGED
@@ -262,12 +262,10 @@ function generateChildVariableMap(variables, fieldArguments) {
262
262
  const childVars = {};
263
263
  for (const [name, value] of fieldArguments) {
264
264
  if (value.kind === 'Variable') {
265
- // @ts-expect-error
266
265
  childVars[name] = variables[value.name];
267
266
  }
268
267
  else {
269
- // @ts-expect-error
270
- childVars[name] = value;
268
+ childVars[name] = value.value;
271
269
  }
272
270
  }
273
271
  return childVars;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isograph/react",
3
- "version": "0.0.0-main-e3630229",
3
+ "version": "0.0.0-main-55835e62",
4
4
  "description": "Use Isograph with React",
5
5
  "homepage": "https://isograph.dev",
6
6
  "main": "dist/index.js",
@@ -16,8 +16,8 @@
16
16
  "prepack": "yarn run test && yarn run compile"
17
17
  },
18
18
  "dependencies": {
19
- "@isograph/disposable-types": "0.0.0-main-e3630229",
20
- "@isograph/react-disposable-state": "0.0.0-main-e3630229",
19
+ "@isograph/disposable-types": "0.0.0-main-55835e62",
20
+ "@isograph/react-disposable-state": "0.0.0-main-55835e62",
21
21
  "react": "^18.2.0"
22
22
  },
23
23
  "devDependencies": {
package/src/read.ts CHANGED
@@ -372,14 +372,13 @@ function generateChildVariableMap(
372
372
  return {};
373
373
  }
374
374
 
375
- const childVars: Variables = {};
375
+ type Writable<T> = { -readonly [P in keyof T]: T[P] };
376
+ const childVars: Writable<Variables> = {};
376
377
  for (const [name, value] of fieldArguments) {
377
378
  if (value.kind === 'Variable') {
378
- // @ts-expect-error
379
379
  childVars[name] = variables[value.name];
380
380
  } else {
381
- // @ts-expect-error
382
- childVars[name] = value;
381
+ childVars[name] = value.value;
383
382
  }
384
383
  }
385
384
  return childVars;