@putout/printer
Advanced tools
Comparing version 1.72.7 to 1.73.0
@@ -55,3 +55,5 @@ 'use strict'; | ||
module.exports.isIf = (path) => isIfStatement(path.find(isIfOrStatement)); | ||
module.exports.isIf = (path) => isIfStatement(path.find( | ||
isIfOrStatement, | ||
)); | ||
@@ -58,0 +60,0 @@ module.exports.isForOf = (path) => { |
@@ -29,4 +29,10 @@ 'use strict'; | ||
}, | ||
Identifier(path, {write, print}) { | ||
write(path.node.name); | ||
Identifier(path, {write, print, maybe}) { | ||
const { | ||
name, | ||
optional, | ||
} = path.node; | ||
write(name); | ||
maybe.write(optional, '?'); | ||
print('__typeAnnotation'); | ||
@@ -33,0 +39,0 @@ }, |
@@ -9,2 +9,3 @@ 'use strict'; | ||
const {TSTypeParameter} = require('./ts-type-parameter'); | ||
const {TSDeclareFunction} = require('./ts-declare-function'); | ||
@@ -17,2 +18,3 @@ module.exports = { | ||
TSConditionalType, | ||
TSDeclareFunction, | ||
TSNeverKeyword(path, {write}) { | ||
@@ -19,0 +21,0 @@ write('never'); |
{ | ||
"name": "@putout/printer", | ||
"version": "1.72.7", | ||
"version": "1.73.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
105060
72
2746