@typescript-eslint/type-utils 8.11.1-alpha.3 → 8.11.1-alpha.5
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/predicates.js +1 -1
- package/package.json +4 -4
package/dist/predicates.js
CHANGED
|
@@ -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,
|
|
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.
|
|
3
|
+
"version": "8.11.1-alpha.5",
|
|
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.
|
|
50
|
-
"@typescript-eslint/utils": "8.11.1-alpha.
|
|
49
|
+
"@typescript-eslint/typescript-estree": "8.11.1-alpha.5",
|
|
50
|
+
"@typescript-eslint/utils": "8.11.1-alpha.5",
|
|
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.
|
|
56
|
+
"@typescript-eslint/parser": "8.11.1-alpha.5",
|
|
57
57
|
"ajv": "^6.12.6",
|
|
58
58
|
"downlevel-dts": "*",
|
|
59
59
|
"jest": "29.7.0",
|