@putout/printer 2.38.0 → 2.39.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.39.0
2
+
3
+ feature:
4
+ - 2cb0a67 @putout/printer: TSIndexSignature: add
5
+
1
6
  2023.06.22, v2.38.0
2
7
 
3
8
  feature:
@@ -220,6 +220,14 @@ 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
+ },
223
231
  TSMethodSignature(path, {traverse, write, maybe}) {
224
232
  traverse(path.get('key'));
225
233
  write('(');
@@ -261,4 +269,3 @@ module.exports = {
261
269
  }
262
270
  },
263
271
  };
264
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/printer",
3
- "version": "2.38.0",
3
+ "version": "2.39.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",