flow-api-translator 0.25.0 → 0.26.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.
@@ -1692,6 +1692,7 @@ const getTransforms = (originalCode, opts) => {
1692
1692
  type: 'TypeAnnotation',
1693
1693
  typeAnnotation: Transform.TSTypeAnnotation(node.constraint)
1694
1694
  }),
1695
+ const: false,
1695
1696
  default: node.default == null ? null : Transform.TSTypeAnnotation(node.default),
1696
1697
  usesExtendsBound: false,
1697
1698
  variance: node.in && node.out || !node.in && !node.out ? null : constructFlowNode({
@@ -1884,6 +1884,7 @@ const getTransforms = (originalCode: string, opts: TranslationOptions) => {
1884
1884
  type: 'TypeAnnotation',
1885
1885
  typeAnnotation: Transform.TSTypeAnnotation(node.constraint),
1886
1886
  }),
1887
+ const: false,
1887
1888
  default:
1888
1889
  node.default == null
1889
1890
  ? null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flow-api-translator",
3
- "version": "0.25.0",
3
+ "version": "0.26.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": "7.2.0",
14
14
  "@typescript-eslint/visitor-keys": "7.2.0",
15
15
  "flow-enums-runtime": "^0.0.6",
16
- "hermes-eslint": "0.25.0",
17
- "hermes-estree": "0.25.0",
18
- "hermes-parser": "0.25.0",
19
- "hermes-transform": "0.25.0",
16
+ "hermes-eslint": "0.26.0",
17
+ "hermes-estree": "0.26.0",
18
+ "hermes-parser": "0.26.0",
19
+ "hermes-transform": "0.26.0",
20
20
  "typescript": "5.3.2"
21
21
  },
22
22
  "peerDependencies": {