@arrirpc/codegen-ts 0.60.3 → 0.61.1

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/index.cjs CHANGED
@@ -807,11 +807,7 @@ function tsRecordFromSchema(schema, context) {
807
807
  ${target} = {};
808
808
  for (const [_key, _value] of Object.entries(${input})) {
809
809
  let ${target}Value: ${innerType.typeName};
810
- if (typeof _value === 'boolean') {
811
- ${target}Value = _value;
812
- } else {
813
- ${target}Value = false;
814
- }
810
+ ${innerType.fromJsonTemplate("_value", `${target}Value`)}
815
811
  ${target}[_key] = ${target}Value;
816
812
  }
817
813
  } else {
package/dist/index.mjs CHANGED
@@ -801,11 +801,7 @@ function tsRecordFromSchema(schema, context) {
801
801
  ${target} = {};
802
802
  for (const [_key, _value] of Object.entries(${input})) {
803
803
  let ${target}Value: ${innerType.typeName};
804
- if (typeof _value === 'boolean') {
805
- ${target}Value = _value;
806
- } else {
807
- ${target}Value = false;
808
- }
804
+ ${innerType.fromJsonTemplate("_value", `${target}Value`)}
809
805
  ${target}[_key] = ${target}Value;
810
806
  }
811
807
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrirpc/codegen-ts",
3
- "version": "0.60.3",
3
+ "version": "0.61.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "prettier": "^3.3.3",
26
- "@arrirpc/codegen-utils": "0.60.3"
26
+ "@arrirpc/codegen-utils": "0.61.1"
27
27
  },
28
28
  "devDependencies": {}
29
29
  }