@typescript-eslint/scope-manager 8.53.2-alpha.2 → 8.53.2-alpha.4

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,8 +1,8 @@
1
1
  import type { TSESTree } from '@typescript-eslint/types';
2
2
  import { DefinitionBase } from './DefinitionBase';
3
3
  import { DefinitionType } from './DefinitionType';
4
- export declare class CatchClauseDefinition extends DefinitionBase<DefinitionType.CatchClause, TSESTree.CatchClause, null, TSESTree.BindingName> {
4
+ export declare class CatchClauseDefinition extends DefinitionBase<DefinitionType.CatchClause, TSESTree.CatchClause, null, TSESTree.Identifier> {
5
5
  readonly isTypeDefinition = false;
6
6
  readonly isVariableDefinition = true;
7
- constructor(name: TSESTree.BindingName, node: CatchClauseDefinition['node']);
7
+ constructor(name: TSESTree.Identifier, node: CatchClauseDefinition['node']);
8
8
  }
@@ -265,9 +265,8 @@ class Referencer extends Visitor_1.Visitor {
265
265
  CatchClause(node) {
266
266
  this.scopeManager.nestCatchScope(node);
267
267
  if (node.param) {
268
- const param = node.param;
269
- this.visitPattern(param, (pattern, info) => {
270
- this.currentScope().defineIdentifier(pattern, new definition_1.CatchClauseDefinition(param, node));
268
+ this.visitPattern(node.param, (pattern, info) => {
269
+ this.currentScope().defineIdentifier(pattern, new definition_1.CatchClauseDefinition(pattern, node));
271
270
  this.referencingDefaultValue(pattern, info.assignments, null, true);
272
271
  }, { processRightHandNodes: true });
273
272
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/scope-manager",
3
- "version": "8.53.2-alpha.2",
3
+ "version": "8.53.2-alpha.4",
4
4
  "description": "TypeScript scope analyser for ESLint",
5
5
  "files": [
6
6
  "dist",
@@ -47,11 +47,11 @@
47
47
  "typecheck": "yarn run -BT nx typecheck"
48
48
  },
49
49
  "dependencies": {
50
- "@typescript-eslint/types": "8.53.2-alpha.2",
51
- "@typescript-eslint/visitor-keys": "8.53.2-alpha.2"
50
+ "@typescript-eslint/types": "8.53.2-alpha.4",
51
+ "@typescript-eslint/visitor-keys": "8.53.2-alpha.4"
52
52
  },
53
53
  "devDependencies": {
54
- "@typescript-eslint/typescript-estree": "8.53.2-alpha.2",
54
+ "@typescript-eslint/typescript-estree": "8.53.2-alpha.4",
55
55
  "@vitest/coverage-v8": "^3.2.4",
56
56
  "@vitest/pretty-format": "^3.2.4",
57
57
  "eslint": "*",