forked from typescript-eslint/typescript-eslint
-
Notifications
You must be signed in to change notification settings - Fork 1
/
spec.ts
32 lines (31 loc) · 1.09 KB
/
spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import type { AST_NODE_TYPES } from '../../ast-node-types';
import type { BaseNode } from '../../base/BaseNode';
import type { Identifier } from '../../expression/Identifier/spec';
import type { TSInterfaceBody } from '../../special/TSInterfaceBody/spec';
import type { TSInterfaceHeritage } from '../../special/TSInterfaceHeritage/spec';
import type { TSTypeParameterDeclaration } from '../../special/TSTypeParameterDeclaration/spec';
export interface TSInterfaceDeclaration extends BaseNode {
type: AST_NODE_TYPES.TSInterfaceDeclaration;
/**
* The body of the interface
*/
body: TSInterfaceBody;
/**
* Whether the interface was `declare`d, `undefined` otherwise
*/
// TODO(#5020) - make this `false` if it is not `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.
* This is `undefined` if there are no generic type parameters declared.
*/
typeParameters?: TSTypeParameterDeclaration;
}