@typescript-eslint/utils 8.60.1-alpha.2 → 8.60.1-alpha.3

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.
@@ -1,9 +1,9 @@
1
1
  import type * as TSESLint from '../../ts-eslint';
2
2
  import type { TSESTree } from '../../ts-estree';
3
- declare const ReferenceTrackerREAD: unique symbol;
4
- declare const ReferenceTrackerCALL: unique symbol;
5
- declare const ReferenceTrackerCONSTRUCT: unique symbol;
6
- declare const ReferenceTrackerESM: unique symbol;
3
+ declare const ReferenceTrackerREAD: symbol;
4
+ declare const ReferenceTrackerCALL: symbol;
5
+ declare const ReferenceTrackerCONSTRUCT: symbol;
6
+ declare const ReferenceTrackerESM: symbol;
7
7
  interface ReferenceTracker {
8
8
  /**
9
9
  * Iterate the references that the given `traceMap` determined.
@@ -50,14 +50,10 @@ declare namespace ReferenceTracker {
50
50
  type CALL = ReferenceTrackerStatic['CALL'];
51
51
  type CONSTRUCT = ReferenceTrackerStatic['CONSTRUCT'];
52
52
  type ESM = ReferenceTrackerStatic['ESM'];
53
- type ReferenceType = CALL | CONSTRUCT | READ;
53
+ type ReferenceType = symbol;
54
54
  type TraceMap<T = any> = Record<string, TraceMapElement<T>>;
55
55
  interface TraceMapElement<T> {
56
56
  [key: string]: TraceMapElement<T>;
57
- [ReferenceTrackerCALL]?: T;
58
- [ReferenceTrackerCONSTRUCT]?: T;
59
- [ReferenceTrackerESM]?: true;
60
- [ReferenceTrackerREAD]?: T;
61
57
  }
62
58
  interface FoundReference<T = any> {
63
59
  info: T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/utils",
3
- "version": "8.60.1-alpha.2",
3
+ "version": "8.60.1-alpha.3",
4
4
  "description": "Utilities for working with TypeScript + ESLint together",
5
5
  "files": [
6
6
  "dist",
@@ -54,9 +54,9 @@
54
54
  ],
55
55
  "dependencies": {
56
56
  "@eslint-community/eslint-utils": "^4.9.1",
57
- "@typescript-eslint/types": "8.60.1-alpha.2",
58
- "@typescript-eslint/scope-manager": "8.60.1-alpha.2",
59
- "@typescript-eslint/typescript-estree": "8.60.1-alpha.2"
57
+ "@typescript-eslint/scope-manager": "8.60.1-alpha.3",
58
+ "@typescript-eslint/typescript-estree": "8.60.1-alpha.3",
59
+ "@typescript-eslint/types": "8.60.1-alpha.3"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",