@typescript-eslint/type-utils
Advanced tools
Comparing version
@@ -65,3 +65,3 @@ "use strict"; | ||
} | ||
for (const part of tsutils.typeParts(type)) { | ||
for (const part of tsutils.typeConstituents(type)) { | ||
if (tsutils.isThenableType(checker, tsNode, part)) { | ||
@@ -68,0 +68,0 @@ const awaitedType = checker.getAwaitedType(part); |
@@ -185,3 +185,3 @@ "use strict"; | ||
const result = tsutils | ||
.unionTypeParts(type) | ||
.unionConstituents(type) | ||
.every(t => seenTypes.has(t) || | ||
@@ -188,0 +188,0 @@ isTypeReadonlyRecurser(program, t, options, seenTypes) === |
@@ -70,3 +70,3 @@ "use strict"; | ||
function isTypeArrayTypeOrUnionOfArrayTypes(type, checker) { | ||
for (const t of tsutils.unionTypeParts(type)) { | ||
for (const t of tsutils.unionConstituents(type)) { | ||
if (!checker.isArrayType(t)) { | ||
@@ -73,0 +73,0 @@ return false; |
@@ -47,3 +47,3 @@ "use strict"; | ||
let flags = 0; | ||
for (const t of tsutils.unionTypeParts(type)) { | ||
for (const t of tsutils.unionConstituents(type)) { | ||
flags |= t.flags; | ||
@@ -50,0 +50,0 @@ } |
@@ -165,3 +165,3 @@ "use strict"; | ||
tsutils | ||
.intersectionTypeParts(type) | ||
.intersectionConstituents(type) | ||
.some(part => typeMatchesSpecifier(part, specifier, program))) { | ||
@@ -168,0 +168,0 @@ return true; |
{ | ||
"name": "@typescript-eslint/type-utils", | ||
"version": "8.31.2-alpha.8", | ||
"version": "8.32.0", | ||
"description": "Type utilities for working with TypeScript + ESLint together", | ||
@@ -40,4 +40,3 @@ "files": [ | ||
"build": "tsc -b tsconfig.build.json", | ||
"clean": "tsc -b tsconfig.build.json --clean", | ||
"postclean": "rimraf dist/ coverage/", | ||
"clean": "rimraf dist/ coverage/", | ||
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", | ||
@@ -49,6 +48,6 @@ "lint": "npx nx lint", | ||
"dependencies": { | ||
"@typescript-eslint/typescript-estree": "8.31.2-alpha.8", | ||
"@typescript-eslint/utils": "8.31.2-alpha.8", | ||
"@typescript-eslint/typescript-estree": "8.32.0", | ||
"@typescript-eslint/utils": "8.32.0", | ||
"debug": "^4.3.4", | ||
"ts-api-utils": "^2.0.1" | ||
"ts-api-utils": "^2.1.0" | ||
}, | ||
@@ -60,9 +59,10 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@typescript-eslint/parser": "8.31.2-alpha.8", | ||
"@vitest/coverage-v8": "^3.1.1", | ||
"@typescript-eslint/parser": "8.32.0", | ||
"@vitest/coverage-v8": "^3.1.2", | ||
"ajv": "^6.12.6", | ||
"eslint": "*", | ||
"prettier": "^3.2.5", | ||
"rimraf": "*", | ||
"typescript": "*", | ||
"vitest": "^3.1.1" | ||
"vitest": "^3.1.2" | ||
}, | ||
@@ -69,0 +69,0 @@ "funding": { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
-100%96040
-0.05%8
14.29%65
-9.72%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated