flow-api-translator 0.16.0 → 0.17.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.
@@ -54,6 +54,7 @@ import type {
54
54
  TypeAnnotation,
55
55
  TypeAnnotationType,
56
56
  TypeCastExpression,
57
+ TypeOperator,
57
58
  TypeParameterDeclaration,
58
59
  TypeParameterInstantiation,
59
60
  VariableDeclaration,
@@ -1108,7 +1109,7 @@ function convertComponentDeclaration(
1108
1109
  }
1109
1110
 
1110
1111
  return [
1111
- asDetachedNode<TypeAnnotation>(rendersType),
1112
+ asDetachedNode<TypeOperator>(rendersType),
1112
1113
  analyzeTypeDependencies(rendersType, context),
1113
1114
  ];
1114
1115
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flow-api-translator",
3
- "version": "0.16.0",
3
+ "version": "0.17.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",
@@ -12,10 +12,10 @@
12
12
  "@babel/code-frame": "^7.16.0",
13
13
  "@typescript-eslint/visitor-keys": "^5.42.0",
14
14
  "flow-enums-runtime": "^0.0.6",
15
- "hermes-eslint": "0.16.0",
16
- "hermes-estree": "0.16.0",
17
- "hermes-parser": "0.16.0",
18
- "hermes-transform": "0.16.0"
15
+ "hermes-eslint": "0.17.0",
16
+ "hermes-estree": "0.17.0",
17
+ "hermes-parser": "0.17.0",
18
+ "hermes-transform": "0.17.0"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "prettier": "^3.0.0 || ^2.7.1"