⬅️ Back to Table of Contents
📄 spec.ts
📊 Analysis Summary
Metric |
Count |
📦 Imports |
3 |
📐 Interfaces |
3 |
📑 Type Aliases |
1 |
📚 Table of Contents
🛠️ File Location:
📂 packages/ast-spec/src/declaration/ClassDeclaration/spec.ts
📦 Imports
Name |
Source |
AST_NODE_TYPES |
../../ast-node-types |
ClassBase |
../../base/ClassBase |
Identifier |
../../expression/Identifier/spec |
Interfaces
ClassDeclarationBase
Interface Code
interface ClassDeclarationBase extends ClassBase {
type: AST_NODE_TYPES.ClassDeclaration;
}
Properties
Name |
Type |
Optional |
Description |
type |
AST_NODE_TYPES.ClassDeclaration |
✗ |
|
ClassDeclarationWithName
Interface Code
export interface ClassDeclarationWithName extends ClassDeclarationBase {
id: Identifier;
}
Properties
Name |
Type |
Optional |
Description |
id |
Identifier |
✗ |
|
ClassDeclarationWithOptionalName
Interface Code
export interface ClassDeclarationWithOptionalName extends ClassDeclarationBase {
id: Identifier | null;
}
Properties
Name |
Type |
Optional |
Description |
id |
Identifier | null |
✗ |
|
Type Aliases
ClassDeclaration
type ClassDeclaration = | ClassDeclarationWithName
| ClassDeclarationWithOptionalName;