preserve input key order (#306)

This commit is contained in:
Satwik Gupta authored and GitHub committed 2021-10-07 13:22:49 +05:30
1 parent 1d3b0c9392
commit 55585e8220
1 file changed
+3 -5
+3 -5
View File
@@ -167,11 +167,9 @@ function printTheTypeDef(obj, jsonObjects) {
output = `/** @typedef {${getUnique(jsonTypes)}} ${jsonDef} \n`;
Object.keys(obj)
.sort()
.forEach(key => {
output += `* @property {${obj[key].join("|")}} ${key} \n`;
});
Object.keys(obj).forEach(key => {
output += `* @property {${obj[key].join("|")}} ${key} \n`;
});
output += "*/";