conjure-typescript
Advanced tools
Comparing version 5.8.0 to 5.9.0
@@ -96,3 +96,3 @@ "use strict"; | ||
// If the type reference is recursive, use a direct reference rather than a namespaced one | ||
if (obj.name === _this.currType.name && obj.package === obj.package) { | ||
if (obj.name === _this.currType.name && obj.package === _this.currType.package) { | ||
return withIPrefix; | ||
@@ -99,0 +99,0 @@ } |
@@ -286,3 +286,5 @@ "use strict"; | ||
name: unionTsType, | ||
type: unionSourceFileInput.memberInterfaces.map(function (iface) { return iface.name; }).join(" | "), | ||
type: unionSourceFileInput.memberInterfaces.length === 0 | ||
? "unknown" | ||
: unionSourceFileInput.memberInterfaces.map(function (iface) { return iface.name; }).join(" | "), | ||
}); | ||
@@ -289,0 +291,0 @@ visitorInterface = sourceFile.addInterface({ |
{ | ||
"name": "conjure-typescript", | ||
"version": "5.8.0", | ||
"version": "5.9.0", | ||
"description": "A conjure generator for Typescript", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -108,3 +108,3 @@ /** | ||
// If the type reference is recursive, use a direct reference rather than a namespaced one | ||
if (obj.name === this.currType.name && obj.package === obj.package) { | ||
if (obj.name === this.currType.name && obj.package === this.currType.package) { | ||
return withIPrefix; | ||
@@ -111,0 +111,0 @@ } |
@@ -270,3 +270,6 @@ /** | ||
name: unionTsType, | ||
type: unionSourceFileInput.memberInterfaces.map(iface => iface.name).join(" | "), | ||
type: | ||
unionSourceFileInput.memberInterfaces.length === 0 | ||
? "unknown" | ||
: unionSourceFileInput.memberInterfaces.map(iface => iface.name).join(" | "), | ||
}); | ||
@@ -273,0 +276,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
280452
4826