Skip to content

⬅️ Back to Table of Contents

📄 FunctionTypeScope.ts

📊 Analysis Summary

Metric Count
🧱 Classes 1
📦 Imports 5

📚 Table of Contents

🛠️ File Location:

📂 packages/scope-manager/src/scope/FunctionTypeScope.ts

📦 Imports

Name Source
TSESTree @typescript-eslint/types
ScopeManager ../ScopeManager
Scope ./Scope
ScopeBase ./ScopeBase
ScopeType ./ScopeType

Classes

FunctionTypeScope

Class Code
export class FunctionTypeScope extends ScopeBase<
  ScopeType.functionType,
  | TSESTree.TSCallSignatureDeclaration
  | TSESTree.TSConstructorType
  | TSESTree.TSConstructSignatureDeclaration
  | TSESTree.TSFunctionType
  | TSESTree.TSMethodSignature,
  Scope
> {
  constructor(
    scopeManager: ScopeManager,
    upperScope: FunctionTypeScope['upper'],
    block: FunctionTypeScope['block'],
  ) {
    super(scopeManager, ScopeType.functionType, upperScope, block, false);
  }
}