UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

7 lines (6 loc) 632 B
import { Identifier, ComputedPropertyName, PropertyAssignment, ShorthandPropertyAssignment, SpreadAssignment } from "./common"; import { GetAccessorDeclaration, SetAccessorDeclaration, MethodDeclaration } from "./class"; import { StringLiteral, NumericLiteral } from "./literal"; export declare type PropertyName = Identifier | StringLiteral | NumericLiteral | ComputedPropertyName; export declare type AccessorDeclaration = GetAccessorDeclaration | SetAccessorDeclaration; export declare type ObjectLiteralElementLike = PropertyAssignment | ShorthandPropertyAssignment | SpreadAssignment | MethodDeclaration | AccessorDeclaration;