-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
spec.ts
22 lines (19 loc) · 809 Bytes
/
spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import type { AST_NODE_TYPES } from '../../ast-node-types';
import type {
PropertyDefinitionComputedNameBase,
PropertyDefinitionNonComputedNameBase,
} from '../../base/PropertyDefinitionBase';
export interface TSAbstractPropertyDefinitionComputedName
extends PropertyDefinitionComputedNameBase {
type: AST_NODE_TYPES.TSAbstractPropertyDefinition;
value: null;
}
export interface TSAbstractPropertyDefinitionNonComputedName
// this does not extend ClassPropertyDefinitionNonComputedNameBase because abstract private names are not allowed
extends PropertyDefinitionNonComputedNameBase {
type: AST_NODE_TYPES.TSAbstractPropertyDefinition;
value: null;
}
export type TSAbstractPropertyDefinition =
| TSAbstractPropertyDefinitionComputedName
| TSAbstractPropertyDefinitionNonComputedName;