@typescript-eslint/type-utils
Advanced tools
Comparing version 5.9.2-alpha.4 to 5.9.2-alpha.7
@@ -23,3 +23,3 @@ "use strict"; | ||
exports.isTypeReadonly = exports.readonlynessOptionsDefaults = exports.readonlynessOptionsSchema = void 0; | ||
const experimental_utils_1 = require("@typescript-eslint/experimental-utils"); | ||
const utils_1 = require("@typescript-eslint/utils"); | ||
const tsutils_1 = require("tsutils"); | ||
@@ -65,3 +65,3 @@ const ts = __importStar(require("typescript")); | ||
if (checker.isArrayType(type)) { | ||
const symbol = experimental_utils_1.ESLintUtils.nullThrows(type.getSymbol(), experimental_utils_1.ESLintUtils.NullThrowsReasons.MissingToken('symbol', 'array type')); | ||
const symbol = utils_1.ESLintUtils.nullThrows(type.getSymbol(), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('symbol', 'array type')); | ||
const escapedName = symbol.getEscapedName(); | ||
@@ -109,3 +109,3 @@ if (escapedName === 'Array') { | ||
for (const property of properties) { | ||
const propertyType = experimental_utils_1.ESLintUtils.nullThrows((0, propertyTypes_1.getTypeOfPropertyOfType)(checker, type, property), experimental_utils_1.ESLintUtils.NullThrowsReasons.MissingToken(`property "${property.name}"`, 'type')); | ||
const propertyType = utils_1.ESLintUtils.nullThrows((0, propertyTypes_1.getTypeOfPropertyOfType)(checker, type, property), utils_1.ESLintUtils.NullThrowsReasons.MissingToken(`property "${property.name}"`, 'type')); | ||
// handle recursive types. | ||
@@ -112,0 +112,0 @@ // we only need this simple check, because a mutable recursive type will break via the above prop readonly check |
@@ -1,2 +0,2 @@ | ||
import { TSESTree } from '@typescript-eslint/experimental-utils'; | ||
import { TSESTree } from '@typescript-eslint/utils'; | ||
import * as ts from 'typescript'; | ||
@@ -3,0 +3,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isUnsafeAssignment = void 0; | ||
const experimental_utils_1 = require("@typescript-eslint/experimental-utils"); | ||
const utils_1 = require("@typescript-eslint/utils"); | ||
const tsutils_1 = require("tsutils"); | ||
@@ -46,4 +46,4 @@ const predicates_1 = require("./predicates"); | ||
} | ||
if ((senderNode === null || senderNode === void 0 ? void 0 : senderNode.type) === experimental_utils_1.AST_NODE_TYPES.NewExpression && | ||
senderNode.callee.type === experimental_utils_1.AST_NODE_TYPES.Identifier && | ||
if ((senderNode === null || senderNode === void 0 ? void 0 : senderNode.type) === utils_1.AST_NODE_TYPES.NewExpression && | ||
senderNode.callee.type === utils_1.AST_NODE_TYPES.Identifier && | ||
senderNode.callee.name === 'Map' && | ||
@@ -50,0 +50,0 @@ senderNode.arguments.length === 0 && |
{ | ||
"name": "@typescript-eslint/type-utils", | ||
"version": "5.9.2-alpha.4+e61e388a", | ||
"version": "5.9.2-alpha.7+4bda6ec7", | ||
"description": "Type utilities for working with TypeScript + ESLint together", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@typescript-eslint/experimental-utils": "5.9.2-alpha.4+e61e388a", | ||
"@typescript-eslint/utils": "5.9.2-alpha.7+4bda6ec7", | ||
"debug": "^4.3.2", | ||
@@ -48,3 +48,3 @@ "tsutils": "^3.21.0" | ||
"devDependencies": { | ||
"@typescript-eslint/parser": "5.9.2-alpha.4+e61e388a", | ||
"@typescript-eslint/parser": "5.9.2-alpha.7+4bda6ec7", | ||
"typescript": "*" | ||
@@ -71,3 +71,3 @@ }, | ||
}, | ||
"gitHead": "e61e388a9820fae393bb76f7e484079515166972" | ||
"gitHead": "4bda6ec778eb47f744d09882ae5055299ff09899" | ||
} |
@@ -11,3 +11,3 @@ <h1 align="center">Type utils for ESLint Plugins</h1> | ||
This utilities in this package are separated from `@typescript-eslint/experimental-utils` so that that package does not require a dependency on `typescript`. | ||
This utilities in this package are separated from `@typescript-eslint/utils` so that that package does not require a dependency on `typescript`. | ||
@@ -14,0 +14,0 @@ ## Contributing |
Sorry, the diff of this file is not supported yet
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
68088