@putout/printer 2.38.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,13 @@
1
+ 2023.06.22, v2.40.0
2
+
3
+ feature:
4
+ - e5730cb @putout/printer: TSCallSignatureDeclaration: add
5
+
6
+ 2023.06.22, v2.39.0
7
+
8
+ feature:
9
+ - 2cb0a67 @putout/printer: TSIndexSignature: add
10
+
1
11
  2023.06.22, v2.38.0
2
12
 
3
13
  feature:
@@ -220,6 +220,22 @@ module.exports = {
220
220
  traverse(typeAnnotation);
221
221
  }
222
222
  },
223
+ TSIndexSignature(path, {print}) {
224
+ print('[');
225
+ print('__parameters.0');
226
+ print(']');
227
+ print(':');
228
+ print.space();
229
+ print('__typeAnnotation');
230
+ },
231
+ TSCallSignatureDeclaration(path, {print}) {
232
+ print('(');
233
+ print('__parameters.0');
234
+ print(')');
235
+ print(':');
236
+ print.space();
237
+ print('__typeAnnotation');
238
+ },
223
239
  TSMethodSignature(path, {traverse, write, maybe}) {
224
240
  traverse(path.get('key'));
225
241
  write('(');
@@ -261,4 +277,3 @@ module.exports = {
261
277
  }
262
278
  },
263
279
  };
264
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "2.38.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",