@typescript-eslint/type-utils 8.11.1-alpha.2 → 8.11.1-alpha.4

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.
@@ -139,7 +139,7 @@ function discriminateAnyType(type, checker, program, tsNode) {
139
139
  return AnyType.AnyArray;
140
140
  }
141
141
  for (const part of tsutils.typeParts(type)) {
142
- if (tsutils.isThenableType(checker, tsNode, type)) {
142
+ if (tsutils.isThenableType(checker, tsNode, part)) {
143
143
  const awaitedType = checker.getAwaitedType(part);
144
144
  if (awaitedType) {
145
145
  const awaitedAnyType = discriminateAnyType(awaitedType, checker, program, tsNode);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/type-utils",
3
- "version": "8.11.1-alpha.2",
3
+ "version": "8.11.1-alpha.4",
4
4
  "description": "Type utilities for working with TypeScript + ESLint together",
5
5
  "files": [
6
6
  "dist",
@@ -46,14 +46,14 @@
46
46
  "typecheck": "tsc --noEmit"
47
47
  },
48
48
  "dependencies": {
49
- "@typescript-eslint/typescript-estree": "8.11.1-alpha.2",
50
- "@typescript-eslint/utils": "8.11.1-alpha.2",
49
+ "@typescript-eslint/typescript-estree": "8.11.1-alpha.4",
50
+ "@typescript-eslint/utils": "8.11.1-alpha.4",
51
51
  "debug": "^4.3.4",
52
52
  "ts-api-utils": "^1.3.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@jest/types": "29.6.3",
56
- "@typescript-eslint/parser": "8.11.1-alpha.2",
56
+ "@typescript-eslint/parser": "8.11.1-alpha.4",
57
57
  "ajv": "^6.12.6",
58
58
  "downlevel-dts": "*",
59
59
  "jest": "29.7.0",