flow-remove-types 2.235.1 → 2.236.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/index.js +6 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -218,6 +218,12 @@ var removeFlowVisitor = {
|
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
220
|
|
|
221
|
+
ExportAllDeclaration: function (context, node) {
|
|
222
|
+
if (node.exportKind === 'type') {
|
|
223
|
+
return removeNode(context, node);
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
|
|
221
227
|
ImportDeclaration: function (context, node) {
|
|
222
228
|
if (node.importKind === 'type' || node.importKind === 'typeof') {
|
|
223
229
|
return removeNode(context, node);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flow-remove-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.236.0",
|
|
4
4
|
"description": "Removes Flow type annotations from JavaScript files with speed and simplicity.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Flow Team",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"es6"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"hermes-parser": "0.
|
|
47
|
+
"hermes-parser": "0.21.0",
|
|
48
48
|
"pirates": "^3.0.2",
|
|
49
49
|
"vlq": "^0.2.1"
|
|
50
50
|
},
|