@putout/printer 1.93.0 → 1.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ChangeLog
CHANGED
|
@@ -30,7 +30,10 @@ module.exports.ObjectPattern = {
|
|
|
30
30
|
const valuePath = property.get('value');
|
|
31
31
|
const keyPath = property.get('key');
|
|
32
32
|
const isAssign = valuePath.isAssignmentPattern();
|
|
33
|
-
const {
|
|
33
|
+
const {
|
|
34
|
+
shorthand,
|
|
35
|
+
computed,
|
|
36
|
+
} = property.node;
|
|
34
37
|
const couple = isCoupleLines(valuePath) && !exists(property.getPrevSibling());
|
|
35
38
|
|
|
36
39
|
maybe.indent(is);
|
|
@@ -101,4 +104,3 @@ function shouldAddNewline(path) {
|
|
|
101
104
|
|
|
102
105
|
return false;
|
|
103
106
|
}
|
|
104
|
-
|
|
@@ -12,6 +12,7 @@ const {
|
|
|
12
12
|
TSModuleDeclaration,
|
|
13
13
|
TSModuleBlock,
|
|
14
14
|
} = require('./ts-module-declaration');
|
|
15
|
+
const {TSInterfaceDeclaration} = require('./ts-interface-declaration');
|
|
15
16
|
|
|
16
17
|
module.exports = {
|
|
17
18
|
TSTypeLiteral,
|
|
@@ -84,11 +85,7 @@ module.exports = {
|
|
|
84
85
|
write(`${operator} `);
|
|
85
86
|
print('__typeAnnotation');
|
|
86
87
|
},
|
|
87
|
-
TSInterfaceDeclaration
|
|
88
|
-
print('interface ');
|
|
89
|
-
print('__id');
|
|
90
|
-
print('__body');
|
|
91
|
-
},
|
|
88
|
+
TSInterfaceDeclaration,
|
|
92
89
|
TSInterfaceBody(path, {traverse, write, indent}) {
|
|
93
90
|
write(' {');
|
|
94
91
|
write.newline();
|
package/package.json
CHANGED