@putout/printer 2.39.0 → 2.40.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
@@ -1,3 +1,8 @@
1
+ 2023.06.22, v2.40.0
2
+
3
+ feature:
4
+ - e5730cb @putout/printer: TSCallSignatureDeclaration: add
5
+
1
6
  2023.06.22, v2.39.0
2
7
 
3
8
  feature:
@@ -228,6 +228,14 @@ module.exports = {
228
228
  print.space();
229
229
  print('__typeAnnotation');
230
230
  },
231
+ TSCallSignatureDeclaration(path, {print}) {
232
+ print('(');
233
+ print('__parameters.0');
234
+ print(')');
235
+ print(':');
236
+ print.space();
237
+ print('__typeAnnotation');
238
+ },
231
239
  TSMethodSignature(path, {traverse, write, maybe}) {
232
240
  traverse(path.get('key'));
233
241
  write('(');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "2.39.0",
3
+ "version": "2.40.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Simplest possible opinionated Babel AST printer for 🐊Putout",