⬅️ Back to Table of Contents
📄 spec.ts
📊 Analysis Summary
Metric |
Count |
📦 Imports |
6 |
📐 Interfaces |
1 |
📚 Table of Contents
🛠️ File Location:
📂 packages/ast-spec/src/declaration/TSInterfaceDeclaration/spec.ts
📦 Imports
Name |
Source |
AST_NODE_TYPES |
../../ast-node-types |
BaseNode |
../../base/BaseNode |
Identifier |
../../expression/Identifier/spec |
TSInterfaceBody |
../../special/TSInterfaceBody/spec |
TSInterfaceHeritage |
../../special/TSInterfaceHeritage/spec |
TSTypeParameterDeclaration |
../../special/TSTypeParameterDeclaration/spec |
Interfaces
TSInterfaceDeclaration
Interface Code
export interface TSInterfaceDeclaration extends BaseNode {
type: AST_NODE_TYPES.TSInterfaceDeclaration;
/**
* The body of the interface
*/
body: TSInterfaceBody;
/**
* Whether the interface was `declare`d
*/
declare: boolean;
/**
* The types this interface `extends`
*/
extends: TSInterfaceHeritage[];
/**
* The name of this interface
*/
id: Identifier;
/**
* The generic type parameters declared for the interface. Empty declaration
* (`<>`) is different from no declaration.
*/
typeParameters: TSTypeParameterDeclaration | undefined;
}
Properties
Name |
Type |
Optional |
Description |
type |
AST_NODE_TYPES.TSInterfaceDeclaration |
✗ |
|
body |
TSInterfaceBody |
✗ |
|
declare |
boolean |
✗ |
|
extends |
TSInterfaceHeritage[] |
✗ |
|
id |
Identifier |
✗ |
|
typeParameters |
TSTypeParameterDeclaration | undefined |
✗ |
|