mirror of
https://github.com/ritz078/transform.git
synced 2026-11-20 16:22:53 +03:00
preserve input key order (#306)
This commit is contained in:
1 parent
1d3b0c9392
commit
55585e8220
1 file changed
+3
-5
Vendored
+3
-5
@@ -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 += "*/";
|
||||
|
||||
|
||||
Reference in new issue
Block a user