@typescript-eslint/type-utils 8.67.1-alpha.2 → 8.67.1-alpha.21

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.
@@ -210,3 +210,4 @@ function valueMatchesSpecifier(node, specifier, program, type) {
210
210
  }
211
211
  const valueMatchesSomeSpecifier = (node, specifiers = [], program, type) => specifiers.some(specifier => valueMatchesSpecifier(node, specifier, program, type));
212
212
  exports.valueMatchesSomeSpecifier = valueMatchesSomeSpecifier;
213
+ //# sourceMappingURL=TypeOrValueSpecifier.js.map
@@ -163,3 +163,4 @@ function isBuiltinSymbolLikeRecurser(program, type, predicate) {
163
163
  }
164
164
  return false;
165
165
  }
166
+ //# sourceMappingURL=builtinSymbolLikes.js.map
@@ -67,3 +67,4 @@ function containsAllTypesByName(type, allowAny, allowedNames, matchAnyInstead =
67
67
  ? bases.some(predicate)
68
68
  : bases.length > 0 && bases.every(predicate)));
69
69
  }
70
+ //# sourceMappingURL=containsAllTypesByName.js.map
@@ -75,3 +75,4 @@ function discriminateAnyTypeWorker(type, checker, program, tsNode, visited) {
75
75
  }
76
76
  return AnyType.Safe;
77
77
  }
78
+ //# sourceMappingURL=discriminateAnyType.js.map
@@ -17,3 +17,4 @@ function getConstrainedTypeAtLocation(services, node) {
17
17
  .getBaseConstraintOfType(nodeType);
18
18
  return constrained ?? nodeType;
19
19
  }
20
+ //# sourceMappingURL=getConstrainedTypeAtLocation.js.map
@@ -74,3 +74,4 @@ function getContextualType(checker, node) {
74
74
  // TODO - support return statement checking
75
75
  return checker.getContextualType(node);
76
76
  }
77
+ //# sourceMappingURL=getContextualType.js.map
@@ -12,3 +12,4 @@ function getDeclaration(services, node) {
12
12
  const declarations = symbol.getDeclarations();
13
13
  return declarations?.[0] ?? null;
14
14
  }
15
+ //# sourceMappingURL=getDeclaration.js.map
@@ -45,3 +45,4 @@ function getSourceFileOfNode(node) {
45
45
  }
46
46
  return node;
47
47
  }
48
+ //# sourceMappingURL=getSourceFileOfNode.js.map
@@ -82,3 +82,4 @@ function getTypeName(typeChecker, type) {
82
82
  }
83
83
  return typeChecker.typeToString(type);
84
84
  }
85
+ //# sourceMappingURL=getTypeName.js.map
package/dist/index.js CHANGED
@@ -36,3 +36,4 @@ var typescript_estree_1 = require("@typescript-eslint/typescript-estree");
36
36
  Object.defineProperty(exports, "getDecorators", { enumerable: true, get: function () { return typescript_estree_1.getDecorators; } });
37
37
  Object.defineProperty(exports, "getModifiers", { enumerable: true, get: function () { return typescript_estree_1.getModifiers; } });
38
38
  Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true, get: function () { return typescript_estree_1.typescriptVersionIsAtLeast; } });
39
+ //# sourceMappingURL=index.js.map
@@ -14,3 +14,4 @@ function isSymbolFromDefaultLibrary(program, symbol) {
14
14
  }
15
15
  return false;
16
16
  }
17
+ //# sourceMappingURL=isSymbolFromDefaultLibrary.js.map
@@ -72,3 +72,4 @@ function isTypeBrandedLiteralLike(type) {
72
72
  ? type.types.every(isTypeBrandedLiteral)
73
73
  : isTypeBrandedLiteral(type);
74
74
  }
75
+ //# sourceMappingURL=isTypeBrandedLiteralLike.js.map
@@ -253,3 +253,4 @@ function isTypeReadonly(program, type, options = exports.readonlynessOptionsDefa
253
253
  return (isTypeReadonlyRecurser(program, type, options, new Set()) ===
254
254
  Readonlyness.Readonly);
255
255
  }
256
+ //# sourceMappingURL=isTypeReadonly.js.map
@@ -112,3 +112,4 @@ function isUnsafeAssignmentWorker(type, receiver, checker, senderNode, visited)
112
112
  }
113
113
  return false;
114
114
  }
115
+ //# sourceMappingURL=isUnsafeAssignment.js.map
@@ -155,3 +155,4 @@ function isTypeBigIntLiteralType(type) {
155
155
  function isTypeTemplateLiteralType(type) {
156
156
  return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.TemplateLiteral);
157
157
  }
158
+ //# sourceMappingURL=predicates.js.map
@@ -33,3 +33,4 @@ function isKnownSymbol(escapedName) {
33
33
  function isPrivateIdentifierSymbol(escapedName) {
34
34
  return escapedName.startsWith('__#');
35
35
  }
36
+ //# sourceMappingURL=propertyTypes.js.map
@@ -50,3 +50,4 @@ function requiresQuoting(name, target = ts.ScriptTarget.ESNext) {
50
50
  }
51
51
  return false;
52
52
  }
53
+ //# sourceMappingURL=requiresQuoting.js.map
@@ -68,3 +68,4 @@ isReceiver) {
68
68
  }
69
69
  return (flags & flagsToCheck) !== 0;
70
70
  }
71
+ //# sourceMappingURL=typeFlagUtils.js.map
@@ -14,3 +14,4 @@ function specifierNameMatches(type, names) {
14
14
  }
15
15
  return false;
16
16
  }
17
+ //# sourceMappingURL=specifierNameMatches.js.map
@@ -14,3 +14,4 @@ function typeDeclaredInFile(relativePath, declarationFiles, program) {
14
14
  const absolutePath = (0, typescript_estree_1.getCanonicalFileName)(node_path_1.default.join(program.getCurrentDirectory(), relativePath));
15
15
  return declarationFiles.some(declaration => (0, typescript_estree_1.getCanonicalFileName)(declaration.fileName) === absolutePath);
16
16
  }
17
+ //# sourceMappingURL=typeDeclaredInFile.js.map
@@ -9,3 +9,4 @@ function typeDeclaredInLib(declarationFiles, program) {
9
9
  }
10
10
  return declarationFiles.some(declaration => program.isSourceFileDefaultLibrary(declaration));
11
11
  }
12
+ //# sourceMappingURL=typeDeclaredInLib.js.map
@@ -68,3 +68,4 @@ function typeDeclaredInPackageDeclarationFile(packageName, declarations, declara
68
68
  return (typeDeclaredInDeclareModule(packageName, declarations) ||
69
69
  typeDeclaredInDeclarationFile(packageName, declarationFiles, program));
70
70
  }
71
+ //# sourceMappingURL=typeDeclaredInPackageDeclarationFile.js.map
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@typescript-eslint/type-utils",
3
- "version": "8.67.1-alpha.2",
3
+ "version": "8.67.1-alpha.21",
4
4
  "description": "Type utilities for working with TypeScript + ESLint together",
5
5
  "files": [
6
6
  "dist",
7
+ "!**/*.js.map",
7
8
  "!**/*.tsbuildinfo"
8
9
  ],
9
10
  "type": "commonjs",
@@ -33,11 +34,11 @@
33
34
  "estree"
34
35
  ],
35
36
  "dependencies": {
37
+ "@typescript-eslint/types": "8.67.1-alpha.21",
38
+ "@typescript-eslint/typescript-estree": "8.67.1-alpha.21",
39
+ "@typescript-eslint/utils": "8.67.1-alpha.21",
36
40
  "debug": "^4.4.3",
37
- "ts-api-utils": "^2.5.0",
38
- "@typescript-eslint/typescript-estree": "8.67.1-alpha.2",
39
- "@typescript-eslint/utils": "8.67.1-alpha.2",
40
- "@typescript-eslint/types": "8.67.1-alpha.2"
41
+ "ts-api-utils": "^2.5.0"
41
42
  },
42
43
  "peerDependencies": {
43
44
  "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
@@ -45,14 +46,14 @@
45
46
  },
46
47
  "devDependencies": {
47
48
  "@types/babel__code-frame": "^7.0.6",
49
+ "@typescript-eslint/parser": "8.67.1-alpha.21",
48
50
  "@typescript/native": "npm:typescript@^7.0.2",
49
51
  "@vitest/coverage-v8": "^4.0.18",
50
52
  "ajv": "^6.12.6",
51
53
  "eslint": "^10.0.0",
52
54
  "rimraf": "^5.0.10",
53
55
  "typescript": ">=4.8.4 <6.1.0",
54
- "vitest": "^4.0.18",
55
- "@typescript-eslint/parser": "8.67.1-alpha.2"
56
+ "vitest": "^4.0.18"
56
57
  },
57
58
  "funding": {
58
59
  "type": "opencollective",