@typescript-eslint/type-utils
Advanced tools
Comparing version 5.9.2-alpha.25 to 5.9.2-alpha.26
@@ -154,2 +154,11 @@ "use strict"; | ||
} | ||
if ((0, tsutils_1.isConditionalType)(type)) { | ||
const result = [type.root.node.trueType, type.root.node.falseType] | ||
.map(checker.getTypeFromTypeNode) | ||
.every(t => seenTypes.has(t) || | ||
isTypeReadonlyRecurser(checker, t, options, seenTypes) === | ||
3 /* Readonly */); | ||
const readonlyness = result ? 3 /* Readonly */ : 2 /* Mutable */; | ||
return readonlyness; | ||
} | ||
// all non-object, non-intersection types are readonly. | ||
@@ -156,0 +165,0 @@ // this should only be primitive types |
{ | ||
"name": "@typescript-eslint/type-utils", | ||
"version": "5.9.2-alpha.25+f4016c24", | ||
"version": "5.9.2-alpha.26+39a6806c", | ||
"description": "Type utilities for working with TypeScript + ESLint together", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@typescript-eslint/utils": "5.9.2-alpha.25+f4016c24", | ||
"@typescript-eslint/utils": "5.9.2-alpha.26+39a6806c", | ||
"debug": "^4.3.2", | ||
@@ -48,3 +48,3 @@ "tsutils": "^3.21.0" | ||
"devDependencies": { | ||
"@typescript-eslint/parser": "5.9.2-alpha.25+f4016c24", | ||
"@typescript-eslint/parser": "5.9.2-alpha.26+39a6806c", | ||
"typescript": "*" | ||
@@ -71,3 +71,3 @@ }, | ||
}, | ||
"gitHead": "f4016c24f9023e8a42def9501b68c4a908cbfede" | ||
"gitHead": "39a6806c61a48bbca93f9ffb965dd8b3fe0575b3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
70081
988