@putout/printer
Advanced tools
Comparing version 9.18.0 to 9.19.0
'use strict'; | ||
module.exports.TSInterfaceBody = (path, {traverse, write, indent, maybe}) => { | ||
const {parseComments} = require('../../comment/comment'); | ||
module.exports.TSInterfaceBody = (path, printer, semantics) => { | ||
const body = path.get('body'); | ||
const { | ||
traverse, | ||
write, | ||
indent, | ||
maybe, | ||
} = printer; | ||
write.space(); | ||
@@ -10,2 +19,4 @@ write('{'); | ||
parseComments(path, printer, semantics); | ||
for (const item of body) { | ||
@@ -12,0 +23,0 @@ indent(); |
@@ -26,2 +26,11 @@ 'use strict'; | ||
traverse(constraint); | ||
const defaultPath = path.get('default'); | ||
if (exists(defaultPath)) { | ||
write.space(); | ||
write('='); | ||
write.space(); | ||
traverse(defaultPath); | ||
} | ||
}; |
{ | ||
"name": "@putout/printer", | ||
"version": "9.18.0", | ||
"version": "9.19.0", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
Sorry, the diff of this file is not supported yet
233307
5128