flow-api-translator 0.35.0 → 0.36.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/dist/flowDefToTSDef.js
CHANGED
|
@@ -85,6 +85,7 @@ function flowDefToTSDef(originalCode, ast, scopeManager, opts) {
|
|
|
85
85
|
for (const node of ast.body) {
|
|
86
86
|
if (node.type in transform) {
|
|
87
87
|
const result = transform[// $FlowExpectedError[prop-missing]
|
|
88
|
+
// $FlowFixMe[incompatible-type]
|
|
88
89
|
node.type]( // $FlowExpectedError[incompatible-type]
|
|
89
90
|
node);
|
|
90
91
|
tsBody.push(...(Array.isArray(result) ? result : [result]));
|
|
@@ -99,6 +99,7 @@ export function flowDefToTSDef(
|
|
|
99
99
|
if (node.type in transform) {
|
|
100
100
|
const result: $FlowFixMe | Array<$FlowFixMe> = transform[
|
|
101
101
|
// $FlowExpectedError[prop-missing]
|
|
102
|
+
// $FlowFixMe[incompatible-type]
|
|
102
103
|
node.type
|
|
103
104
|
](
|
|
104
105
|
// $FlowExpectedError[incompatible-type]
|
|
@@ -85,6 +85,7 @@ function flowDefToTSDef(originalCode, ast, scopeManager, opts) {
|
|
|
85
85
|
for (const node of ast.body) {
|
|
86
86
|
if (node.type in transform) {
|
|
87
87
|
const result = transform[// $FlowExpectedError[prop-missing]
|
|
88
|
+
// $FlowFixMe[incompatible-type]
|
|
88
89
|
node.type]( // $FlowExpectedError[incompatible-type]
|
|
89
90
|
node);
|
|
90
91
|
tsBody.push(...(Array.isArray(result) ? result : [result]));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flow-api-translator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"description": "Toolkit for creating Flow and TypeScript compatible libraries from Flow source code.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"@typescript-eslint/parser": "8.38.0",
|
|
14
14
|
"@typescript-eslint/visitor-keys": "8.38.0",
|
|
15
15
|
"flow-enums-runtime": "^0.0.6",
|
|
16
|
-
"hermes-eslint": "0.
|
|
17
|
-
"hermes-estree": "0.
|
|
18
|
-
"hermes-parser": "0.
|
|
19
|
-
"hermes-transform": "0.
|
|
16
|
+
"hermes-eslint": "0.36.0",
|
|
17
|
+
"hermes-estree": "0.36.0",
|
|
18
|
+
"hermes-parser": "0.36.0",
|
|
19
|
+
"hermes-transform": "0.36.0",
|
|
20
20
|
"typescript": "5.3.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|