@goast/typescript 0.4.2 → 0.4.3

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.
@@ -101,7 +101,7 @@ export class DefaultTypeScriptAngularServiceGenerator extends TypeScriptFileGene
101
101
  parser: (_a = value === null || value === void 0 ? void 0 : value.parser) !== null && _a !== void 0 ? _a : 'text',
102
102
  type: typeof (value === null || value === void 0 ? void 0 : value.type) === 'function'
103
103
  ? this.getSchemaType(ctx, value.type(ctx.data.schemas))
104
- : value !== null && value !== void 0 ? value : ts.refs.never(),
104
+ : value !== null && value !== void 0 ? value : this.getAnyType(ctx),
105
105
  },
106
106
  ];
107
107
  }),
@@ -113,7 +113,7 @@ export class DefaultTypeScriptAngularServiceGenerator extends TypeScriptFileGene
113
113
  x.statusCode,
114
114
  {
115
115
  parser: this.contentTypeToResponseType((_a = x.contentOptions[0]) === null || _a === void 0 ? void 0 : _a.type),
116
- type: this.getSchemaType(ctx, (_b = x.contentOptions[0]) === null || _b === void 0 ? void 0 : _b.schema, ts.refs.never()),
116
+ type: this.getSchemaType(ctx, (_b = x.contentOptions[0]) === null || _b === void 0 ? void 0 : _b.schema, this.getAnyType(ctx)),
117
117
  },
118
118
  ];
119
119
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goast/typescript",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Provides gOAst generators for generating TypeScript code from OpenAPI specifications.",
5
5
  "author": {
6
6
  "name": "Marc Schmidt (MaSch0212)",
@@ -104,7 +104,7 @@ class DefaultTypeScriptAngularServiceGenerator extends file_generator_js_1.TypeS
104
104
  parser: (_a = value === null || value === void 0 ? void 0 : value.parser) !== null && _a !== void 0 ? _a : 'text',
105
105
  type: typeof (value === null || value === void 0 ? void 0 : value.type) === 'function'
106
106
  ? this.getSchemaType(ctx, value.type(ctx.data.schemas))
107
- : value !== null && value !== void 0 ? value : index_js_1.ts.refs.never(),
107
+ : value !== null && value !== void 0 ? value : this.getAnyType(ctx),
108
108
  },
109
109
  ];
110
110
  }),
@@ -116,7 +116,7 @@ class DefaultTypeScriptAngularServiceGenerator extends file_generator_js_1.TypeS
116
116
  x.statusCode,
117
117
  {
118
118
  parser: this.contentTypeToResponseType((_a = x.contentOptions[0]) === null || _a === void 0 ? void 0 : _a.type),
119
- type: this.getSchemaType(ctx, (_b = x.contentOptions[0]) === null || _b === void 0 ? void 0 : _b.schema, index_js_1.ts.refs.never()),
119
+ type: this.getSchemaType(ctx, (_b = x.contentOptions[0]) === null || _b === void 0 ? void 0 : _b.schema, this.getAnyType(ctx)),
120
120
  },
121
121
  ];
122
122
  }),