-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathInterfaceDeclaration.ts
More file actions
29 lines (27 loc) · 1.05 KB
/
InterfaceDeclaration.ts
File metadata and controls
29 lines (27 loc) · 1.05 KB
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
import { AccessorDeclaration } from './AccessorDeclaration';
import { ClassDeclaration } from './ClassDeclaration';
import { ClassLikeDeclaration, ExportableDeclaration, GenericDeclaration } from './Declaration';
import { MethodDeclaration } from './MethodDeclaration';
import { PropertyDeclaration } from './PropertyDeclaration';
/**
* Interface declaration that contains defined properties and methods.
*
* @export
* @class InterfaceDeclaration
* @implements {ExportableDeclaration}
* @implements {GenericDeclaration}
*/
export class InterfaceDeclaration implements ClassLikeDeclaration, ExportableDeclaration, GenericDeclaration {
public accessors: AccessorDeclaration[] = [];
public typeParameters: string[] | undefined;
public properties: PropertyDeclaration[] = [];
public methods: MethodDeclaration[] = [];
implements: InterfaceDeclaration[] = [];
extends: ClassDeclaration[] = [];
constructor(
public name: string,
public isExported: boolean,
public start?: number,
public end?: number,
) { }
}