Skip to content

⬅️ Back to Table of Contents

📄 CatchClauseDefinition.ts

📊 Analysis Summary

Metric Count
🧱 Classes 1
📦 Imports 3

📚 Table of Contents

🛠️ File Location:

📂 packages/scope-manager/src/definition/CatchClauseDefinition.ts

📦 Imports

Name Source
TSESTree @typescript-eslint/types
DefinitionBase ./DefinitionBase
DefinitionType ./DefinitionType

Classes

CatchClauseDefinition

Class Code
export class CatchClauseDefinition extends DefinitionBase<
  DefinitionType.CatchClause,
  TSESTree.CatchClause,
  null,
  TSESTree.BindingName
> {
  public readonly isTypeDefinition = false;
  public readonly isVariableDefinition = true;

  constructor(name: TSESTree.BindingName, node: CatchClauseDefinition['node']) {
    super(DefinitionType.CatchClause, name, node, null);
  }
}