Comparing version 0.1.15 to 0.1.16
@@ -202,4 +202,9 @@ "use strict"; | ||
var att = _a[_i]; | ||
att.type === "array" ? att.type = "any[]" : undefined; | ||
sc.add("private _" + att.name + ":" + att.type + " = [];", 1); | ||
if (att.type === "array") { | ||
att.type = "any[]"; | ||
sc.add("private _" + att.name + ":" + att.type + " = [];", 1); | ||
} | ||
else { | ||
sc.add("private _" + att.name + ":" + att.type + ";", 1); | ||
} | ||
} | ||
@@ -206,0 +211,0 @@ return sc.getString(); |
@@ -199,4 +199,8 @@ //Imports | ||
for(let att of source.attributes){ | ||
att.type === "array" ? att.type = "any[]" : undefined; | ||
sc.add("private _" + att.name + ":" + att.type + " = [];", 1); | ||
if(att.type === "array"){ | ||
att.type = "any[]"; | ||
sc.add("private _" + att.name + ":" + att.type + " = [];", 1); | ||
}else{ | ||
sc.add("private _" + att.name + ":" + att.type + ";", 1); | ||
} | ||
} | ||
@@ -203,0 +207,0 @@ return sc.getString(); |
{ | ||
"name": "ylenia", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "TypeScript-DataSources for JSON. Generates dynamic TypeScript-Classes and JSON-Files.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
48062
746