@cap-js/cds-typer
Advanced tools
Comparing version 0.20.0 to 0.20.1
@@ -9,2 +9,6 @@ # Change Log | ||
## Version 0.20.1 - 2024-04-24 | ||
### Fixed | ||
- Void actions no longer crash the type generation process | ||
## Version 0.20.0 - 2024-04-23 | ||
@@ -11,0 +15,0 @@ ### Added |
@@ -366,3 +366,2 @@ 'use strict' | ||
#printOperation(name, operation, kind) { | ||
// FIXME: mostly duplicate of printAction -> reuse | ||
this.logger.debug(`Printing operation ${name}:\n${JSON.stringify(operation, null, 2)}`) | ||
@@ -372,3 +371,5 @@ const ns = this.resolver.resolveNamespace(name.split('.')) | ||
const params = this.#stringifyFunctionParams(operation.params, file) | ||
const returnType = this.resolver.resolveAndRequire(operation.returns, file) | ||
const returnType = operation.returns | ||
? this.resolver.resolveAndRequire(operation.returns, file) | ||
: { typeName: 'void', typeInfo: { isArray: false, inflection: { singular: 'void', plural: 'void' } } } | ||
const returns = this.inlineDeclarationResolver.getPropertyDatatype( | ||
@@ -375,0 +376,0 @@ returnType, |
{ | ||
"name": "@cap-js/cds-typer", | ||
"version": "0.20.0", | ||
"version": "0.20.1", | ||
"description": "Generates .ts files for a CDS model to receive code completion in VS Code", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
145236
2863