@typescript-eslint/type-utils 5.56.1-alpha.9 → 6.0.0-alpha.101
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/_ts4.2/dist/TypeOrValueSpecifier.d.ts +112 -0
- package/_ts4.2/dist/containsAllTypesByName.d.ts +10 -0
- package/_ts4.2/dist/getConstrainedTypeAtLocation.d.ts +7 -0
- package/_ts4.2/dist/getContextualType.d.ts +8 -0
- package/_ts4.2/dist/getDeclaration.d.ts +7 -0
- package/_ts4.2/dist/getSourceFileOfNode.d.ts +6 -0
- package/_ts4.2/dist/getTokenAtPosition.d.ts +3 -0
- package/_ts4.2/dist/getTypeArguments.d.ts +3 -0
- package/_ts4.2/dist/getTypeName.d.ts +8 -0
- package/_ts4.2/dist/index.d.ts +17 -0
- package/_ts4.2/dist/isTypeReadonly.d.ts +118 -0
- package/_ts4.2/dist/isUnsafeAssignment.d.ts +17 -0
- package/_ts4.2/dist/predicates.d.ts +52 -0
- package/_ts4.2/dist/propertyTypes.d.ts +4 -0
- package/_ts4.2/dist/requiresQuoting.d.ts +4 -0
- package/_ts4.2/dist/typeFlagUtils.d.ts +11 -0
- package/dist/TypeOrValueSpecifier.d.ts +112 -0
- package/dist/TypeOrValueSpecifier.d.ts.map +1 -0
- package/dist/TypeOrValueSpecifier.js +141 -0
- package/dist/TypeOrValueSpecifier.js.map +1 -0
- package/dist/containsAllTypesByName.js +3 -3
- package/dist/containsAllTypesByName.js.map +1 -1
- package/dist/getConstrainedTypeAtLocation.d.ts +2 -1
- package/dist/getConstrainedTypeAtLocation.d.ts.map +1 -1
- package/dist/getConstrainedTypeAtLocation.js +6 -4
- package/dist/getConstrainedTypeAtLocation.js.map +1 -1
- package/dist/getContextualType.d.ts.map +1 -1
- package/dist/getContextualType.js +7 -8
- package/dist/getContextualType.js.map +1 -1
- package/dist/getDeclaration.d.ts +2 -1
- package/dist/getDeclaration.d.ts.map +1 -1
- package/dist/getDeclaration.js +3 -4
- package/dist/getDeclaration.js.map +1 -1
- package/dist/getTypeArguments.js +1 -2
- package/dist/getTypeArguments.js.map +1 -1
- package/dist/getTypeName.js +2 -2
- package/dist/getTypeName.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/isTypeReadonly.d.ts +99 -1
- package/dist/isTypeReadonly.d.ts.map +1 -1
- package/dist/isTypeReadonly.js +38 -25
- package/dist/isTypeReadonly.js.map +1 -1
- package/dist/isUnsafeAssignment.js +29 -7
- package/dist/isUnsafeAssignment.js.map +1 -1
- package/dist/predicates.js +2 -2
- package/dist/predicates.js.map +1 -1
- package/dist/typeFlagUtils.js +2 -2
- package/dist/typeFlagUtils.js.map +1 -1
- package/package.json +29 -22
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.isUnsafeAssignment = void 0;
|
|
4
27
|
const utils_1 = require("@typescript-eslint/utils");
|
|
5
|
-
const
|
|
28
|
+
const tsutils = __importStar(require("ts-api-utils"));
|
|
6
29
|
const predicates_1 = require("./predicates");
|
|
7
30
|
/**
|
|
8
31
|
* Does a simple check to see if there is an any being assigned to a non-any type.
|
|
@@ -15,7 +38,6 @@ const predicates_1 = require("./predicates");
|
|
|
15
38
|
* @returns false if it's safe, or an object with the two types if it's unsafe
|
|
16
39
|
*/
|
|
17
40
|
function isUnsafeAssignment(type, receiver, checker, senderNode) {
|
|
18
|
-
var _a, _b;
|
|
19
41
|
if ((0, predicates_1.isTypeAnyType)(type)) {
|
|
20
42
|
// Allow assignment of any ==> unknown.
|
|
21
43
|
if ((0, predicates_1.isTypeUnknownType)(receiver)) {
|
|
@@ -25,7 +47,7 @@ function isUnsafeAssignment(type, receiver, checker, senderNode) {
|
|
|
25
47
|
return { sender: type, receiver };
|
|
26
48
|
}
|
|
27
49
|
}
|
|
28
|
-
if (
|
|
50
|
+
if (tsutils.isTypeReference(type) && tsutils.isTypeReference(receiver)) {
|
|
29
51
|
// TODO - figure out how to handle cases like this,
|
|
30
52
|
// where the types are assignable, but not the same type
|
|
31
53
|
/*
|
|
@@ -43,18 +65,18 @@ function isUnsafeAssignment(type, receiver, checker, senderNode) {
|
|
|
43
65
|
// the generic positions might not be equivalent for both types
|
|
44
66
|
return false;
|
|
45
67
|
}
|
|
46
|
-
if (
|
|
68
|
+
if (senderNode?.type === utils_1.AST_NODE_TYPES.NewExpression &&
|
|
47
69
|
senderNode.callee.type === utils_1.AST_NODE_TYPES.Identifier &&
|
|
48
70
|
senderNode.callee.name === 'Map' &&
|
|
49
71
|
senderNode.arguments.length === 0 &&
|
|
50
|
-
senderNode.
|
|
72
|
+
senderNode.typeArguments == null) {
|
|
51
73
|
// special case to handle `new Map()`
|
|
52
74
|
// unfortunately Map's default empty constructor is typed to return `Map<any, any>` :(
|
|
53
75
|
// https://github.com/typescript-eslint/typescript-eslint/issues/2109#issuecomment-634144396
|
|
54
76
|
return false;
|
|
55
77
|
}
|
|
56
|
-
const typeArguments =
|
|
57
|
-
const receiverTypeArguments =
|
|
78
|
+
const typeArguments = type.typeArguments ?? [];
|
|
79
|
+
const receiverTypeArguments = receiver.typeArguments ?? [];
|
|
58
80
|
for (let i = 0; i < typeArguments.length; i += 1) {
|
|
59
81
|
const arg = typeArguments[i];
|
|
60
82
|
const receiverArg = receiverTypeArguments[i];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isUnsafeAssignment.js","sourceRoot":"","sources":["../src/isUnsafeAssignment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isUnsafeAssignment.js","sourceRoot":"","sources":["../src/isUnsafeAssignment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AAGxC,6CAAgE;AAEhE;;;;;;;;;GASG;AACH,SAAgB,kBAAkB,CAChC,IAAa,EACb,QAAiB,EACjB,OAAuB,EACvB,UAAgC;IAEhC,IAAI,IAAA,0BAAa,EAAC,IAAI,CAAC,EAAE;QACvB,uCAAuC;QACvC,IAAI,IAAA,8BAAiB,EAAC,QAAQ,CAAC,EAAE;YAC/B,OAAO,KAAK,CAAC;SACd;QAED,IAAI,CAAC,IAAA,0BAAa,EAAC,QAAQ,CAAC,EAAE;YAC5B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;SACnC;KACF;IAED,IAAI,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE;QACtE,mDAAmD;QACnD,wDAAwD;QACxD;;;;;;;;;UASE;QAEF,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,EAAE;YACnC,mGAAmG;YACnG,+DAA+D;YAC/D,OAAO,KAAK,CAAC;SACd;QAED,IACE,UAAU,EAAE,IAAI,KAAK,sBAAc,CAAC,aAAa;YACjD,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;YACpD,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,KAAK;YAChC,UAAU,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC;YACjC,UAAU,CAAC,aAAa,IAAI,IAAI,EAChC;YACA,qCAAqC;YACrC,sFAAsF;YACtF,4FAA4F;YAC5F,OAAO,KAAK,CAAC;SACd;QAED,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,IAAI,EAAE,CAAC;QAC/C,MAAM,qBAAqB,GAAG,QAAQ,CAAC,aAAa,IAAI,EAAE,CAAC;QAE3D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;YAChD,MAAM,GAAG,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;YAC7B,MAAM,WAAW,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;YAE7C,MAAM,MAAM,GAAG,kBAAkB,CAAC,GAAG,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;YACzE,IAAI,MAAM,EAAE;gBACV,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;aACnC;SACF;QAED,OAAO,KAAK,CAAC;KACd;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAnED,gDAmEC"}
|
package/dist/predicates.js
CHANGED
|
@@ -28,7 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.isTypeTemplateLiteralType = exports.isTypeBigIntLiteralType = exports.typeIsOrHasBaseType = exports.isAnyOrAnyArrayTypeDiscriminated = exports.AnyType = exports.isTypeUnknownArrayType = exports.isTypeAnyArrayType = exports.isTypeAnyType = exports.isTypeReferenceType = exports.isTypeUnknownType = exports.isTypeNeverType = exports.isTypeArrayTypeOrUnionOfArrayTypes = exports.isNullableType = void 0;
|
|
30
30
|
const debug_1 = __importDefault(require("debug"));
|
|
31
|
-
const
|
|
31
|
+
const tsutils = __importStar(require("ts-api-utils"));
|
|
32
32
|
const ts = __importStar(require("typescript"));
|
|
33
33
|
const getTypeArguments_1 = require("./getTypeArguments");
|
|
34
34
|
const typeFlagUtils_1 = require("./typeFlagUtils");
|
|
@@ -55,7 +55,7 @@ exports.isNullableType = isNullableType;
|
|
|
55
55
|
* or a union made up solely of array types.
|
|
56
56
|
*/
|
|
57
57
|
function isTypeArrayTypeOrUnionOfArrayTypes(type, checker) {
|
|
58
|
-
for (const t of
|
|
58
|
+
for (const t of tsutils.unionTypeParts(type)) {
|
|
59
59
|
if (!checker.isArrayType(t)) {
|
|
60
60
|
return false;
|
|
61
61
|
}
|
package/dist/predicates.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,sDAAwC;AACxC,+CAAiC;AAEjC,yDAAsD;AACtD,mDAA8D;AAE9D,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,6CAA6C,CAAC,CAAC;AAEjE;;;GAGG;AACH,SAAgB,cAAc,CAC5B,IAAa,EACb,EACE,UAAU,GAAG,KAAK,EAClB,cAAc,GAAG,IAAI,MACiC,EAAE;I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uBAAuB,CACrC,IAAa;IAEb,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;AACzD,CAAC;AAJD,0DAIC;AAED,SAAgB,yBAAyB,CACvC,IAAa;IAEb,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;AAC3D,CAAC;AAJD,8DAIC"}
|
package/dist/typeFlagUtils.js
CHANGED
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.isTypeFlagSet = exports.getTypeFlags = void 0;
|
|
27
|
-
const
|
|
27
|
+
const tsutils = __importStar(require("ts-api-utils"));
|
|
28
28
|
const ts = __importStar(require("typescript"));
|
|
29
29
|
/**
|
|
30
30
|
* Gets all of the type flags in a type, iterating through unions automatically
|
|
@@ -32,7 +32,7 @@ const ts = __importStar(require("typescript"));
|
|
|
32
32
|
function getTypeFlags(type) {
|
|
33
33
|
// @ts-expect-error Since typescript 5.0, this is invalid, but uses 0 as the default value of TypeFlags.
|
|
34
34
|
let flags = 0;
|
|
35
|
-
for (const t of
|
|
35
|
+
for (const t of tsutils.unionTypeParts(type)) {
|
|
36
36
|
flags |= t.flags;
|
|
37
37
|
}
|
|
38
38
|
return flags;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeFlagUtils.js","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"typeFlagUtils.js","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AACxC,+CAAiC;AAEjC;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAa;IACxC,wGAAwG;IACxG,IAAI,KAAK,GAAiB,CAAC,CAAC;IAC5B,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;QAC5C,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC;KAClB;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAPD,oCAOC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAC3B,IAAa,EACb,YAA0B,EAC1B,UAAoB;IAEpB,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAEjC,IAAI,UAAU,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;QACnE,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAZD,sCAYC"}
|
package/package.json
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/type-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-alpha.101+118a409ac",
|
|
4
4
|
"description": "Type utilities for working with TypeScript + ESLint together",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"eslint",
|
|
7
|
-
"typescript",
|
|
8
|
-
"estree"
|
|
9
|
-
],
|
|
10
|
-
"engines": {
|
|
11
|
-
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
|
12
|
-
},
|
|
13
5
|
"files": [
|
|
14
6
|
"dist",
|
|
15
|
-
"
|
|
7
|
+
"_ts4.2",
|
|
16
8
|
"package.json",
|
|
17
9
|
"README.md",
|
|
18
10
|
"LICENSE"
|
|
19
11
|
],
|
|
12
|
+
"type": "commonjs",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./package.json": "./package.json"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": "^14.18.0 || ^16.0.0 || >=18.0.0"
|
|
22
|
+
},
|
|
20
23
|
"repository": {
|
|
21
24
|
"type": "git",
|
|
22
25
|
"url": "https://github.com/typescript-eslint/typescript-eslint.git",
|
|
@@ -26,30 +29,34 @@
|
|
|
26
29
|
"url": "https://github.com/typescript-eslint/typescript-eslint/issues"
|
|
27
30
|
},
|
|
28
31
|
"license": "MIT",
|
|
29
|
-
"
|
|
30
|
-
|
|
32
|
+
"keywords": [
|
|
33
|
+
"eslint",
|
|
34
|
+
"typescript",
|
|
35
|
+
"estree"
|
|
36
|
+
],
|
|
31
37
|
"scripts": {
|
|
32
38
|
"build": "tsc -b tsconfig.build.json",
|
|
33
|
-
"postbuild": "downlevel-dts dist
|
|
39
|
+
"postbuild": "downlevel-dts dist _ts4.2/dist --to=4.2",
|
|
34
40
|
"clean": "tsc -b tsconfig.build.json --clean",
|
|
35
|
-
"postclean": "rimraf dist && rimraf _ts3.4 && rimraf coverage",
|
|
41
|
+
"postclean": "rimraf dist && rimraf _ts3.4 && rimraf _ts4.2 && rimraf coverage",
|
|
36
42
|
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
|
|
37
43
|
"lint": "nx lint",
|
|
38
44
|
"test": "jest --coverage",
|
|
39
45
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
40
46
|
},
|
|
41
47
|
"dependencies": {
|
|
42
|
-
"@typescript-eslint/typescript-estree": "
|
|
43
|
-
"@typescript-eslint/utils": "
|
|
48
|
+
"@typescript-eslint/typescript-estree": "6.0.0-alpha.101+118a409ac",
|
|
49
|
+
"@typescript-eslint/utils": "6.0.0-alpha.101+118a409ac",
|
|
44
50
|
"debug": "^4.3.4",
|
|
45
|
-
"
|
|
51
|
+
"ts-api-utils": "^0.0.44"
|
|
46
52
|
},
|
|
47
53
|
"devDependencies": {
|
|
48
|
-
"@typescript-eslint/parser": "
|
|
54
|
+
"@typescript-eslint/parser": "6.0.0-alpha.101+118a409ac",
|
|
55
|
+
"ajv": "^8.12.0",
|
|
49
56
|
"typescript": "*"
|
|
50
57
|
},
|
|
51
58
|
"peerDependencies": {
|
|
52
|
-
"eslint": "
|
|
59
|
+
"eslint": "^7.0.0 || ^8.0.0"
|
|
53
60
|
},
|
|
54
61
|
"peerDependenciesMeta": {
|
|
55
62
|
"typescript": {
|
|
@@ -61,11 +68,11 @@
|
|
|
61
68
|
"url": "https://opencollective.com/typescript-eslint"
|
|
62
69
|
},
|
|
63
70
|
"typesVersions": {
|
|
64
|
-
"<
|
|
71
|
+
"<4.7": {
|
|
65
72
|
"*": [
|
|
66
|
-
"
|
|
73
|
+
"_ts4.2/*"
|
|
67
74
|
]
|
|
68
75
|
}
|
|
69
76
|
},
|
|
70
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "118a409ac360321642fd645c227d13cfb5eeac31"
|
|
71
78
|
}
|