Socket
Socket
Sign inDemoInstall

@typescript-eslint/type-utils

Package Overview
Dependencies
4
Maintainers
1
Versions
1929
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.9.2-alpha.25 to 5.9.2-alpha.26

9

dist/isTypeReadonly.js

@@ -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

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc