mirror of
https://github.com/ritz078/transform.git
synced 2026-11-21 00:32:56 +03:00
Merge branch 'killercup-rustfmt'
This commit is contained in:
commit
6b724c08e0
1 file changed
+3
-3
@@ -319,10 +319,10 @@ var Json2dts = (function() {
|
||||
var output;
|
||||
var classes = {};
|
||||
var outputModule = this.moduleName == "" ? false : true;
|
||||
var interfaceTab = outputModule ? "\t" : "";
|
||||
var propertyTab = interfaceTab + "\t";
|
||||
var interfaceTab = outputModule ? " " : "";
|
||||
var propertyTab = interfaceTab + " ";
|
||||
Object.keys(this.classes).map(function(clsName) {
|
||||
output = interfaceTab + "#[derive(Serialize, Deserialize)]\nstruct " + clsName + " \n" + interfaceTab + "{\n";
|
||||
output = interfaceTab + "#[derive(Serialize, Deserialize)]\nstruct " + clsName + " {\n";
|
||||
Object.keys(_this.classes[clsName]).map(function(key) {
|
||||
output += propertyTab + key + ": " + _this.classes[clsName][key] + ",\n";
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user