Skip to content

⬅️ Back to Table of Contents

📄 TypeDefinition

📊 Analysis Summary

Metric Count
🧱 Classes 1
📦 Imports 3

📚 Table of Contents

🛠️ File Location:

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

📦 Imports

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

Classes

TypeDefinition

Extends: `DefinitionBase< DefinitionType.Type, | TSESTree.TSInterfaceDeclaration | TSESTree.TSMappedType | TSESTree.TSTypeAliasDeclaration | TSESTree.TSTypeParameter, null, TSESTree.Identifier

`

Class Code
export class TypeDefinition extends DefinitionBase<
  DefinitionType.Type,
  | TSESTree.TSInterfaceDeclaration
  | TSESTree.TSMappedType
  | TSESTree.TSTypeAliasDeclaration
  | TSESTree.TSTypeParameter,
  null,
  TSESTree.Identifier
> {
  public readonly isTypeDefinition = true;
  public readonly isVariableDefinition = false;

  constructor(name: TSESTree.Identifier, node: TypeDefinition['node']) {
    super(DefinitionType.Type, name, node, null);
  }
}

Generated by Syntax Scribe