⬅️ Back to Table of Contents
📄 TypeDefinition.ts
📊 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
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);
}
}