flow-api-translator 0.33.0 → 0.33.2

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.
@@ -2246,8 +2246,9 @@ const getTransforms = (originalCode, scopeManager, opts) => {
2246
2246
  }
2247
2247
 
2248
2248
  case '$Values':
2249
+ case 'Values':
2249
2250
  {
2250
- // `$Values<T>` => `T[keyof T]`
2251
+ // `$Values<T>` / `Values<T>` => `T[keyof T]`
2251
2252
  const transformedType = assertHasExactlyNTypeParameters(1)[0];
2252
2253
  return {
2253
2254
  type: 'TSIndexedAccessType',
@@ -2464,8 +2464,9 @@ const getTransforms = (
2464
2464
  };
2465
2465
  }
2466
2466
 
2467
- case '$Values': {
2468
- // `$Values<T>` => `T[keyof T]`
2467
+ case '$Values':
2468
+ case 'Values': {
2469
+ // `$Values<T>` / `Values<T>` => `T[keyof T]`
2469
2470
  const transformedType = assertHasExactlyNTypeParameters(1)[0];
2470
2471
  return {
2471
2472
  type: 'TSIndexedAccessType',
@@ -2246,8 +2246,9 @@ const getTransforms = (originalCode, scopeManager, opts) => {
2246
2246
  }
2247
2247
 
2248
2248
  case '$Values':
2249
+ case 'Values':
2249
2250
  {
2250
- // `$Values<T>` => `T[keyof T]`
2251
+ // `$Values<T>` / `Values<T>` => `T[keyof T]`
2251
2252
  const transformedType = assertHasExactlyNTypeParameters(1)[0];
2252
2253
  return {
2253
2254
  type: 'TSIndexedAccessType',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flow-api-translator",
3
- "version": "0.33.0",
3
+ "version": "0.33.2",
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.33.0",
17
- "hermes-estree": "0.33.0",
18
- "hermes-parser": "0.33.0",
19
- "hermes-transform": "0.33.0",
16
+ "hermes-eslint": "0.33.2",
17
+ "hermes-estree": "0.33.2",
18
+ "hermes-parser": "0.33.2",
19
+ "hermes-transform": "0.33.2",
20
20
  "typescript": "5.3.2"
21
21
  },
22
22
  "peerDependencies": {