UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

22 lines (21 loc) 1.23 kB
import * as ts from "typescript"; import { Node } from "./../common"; import { PropertyNamedNode, StaticableNode, ScopedNode, DecoratableNode, BodiedNode, TextInsertableNode } from "./../base"; import { FunctionLikeDeclaration } from "./../function"; import { AbstractableNode } from "./base"; import { SetAccessorDeclaration } from "./SetAccessorDeclaration"; export declare const GetAccessorDeclarationBase: (new (...args: any[]) => TextInsertableNode) & (new (...args: any[]) => DecoratableNode) & (new (...args: any[]) => AbstractableNode) & (new (...args: any[]) => ScopedNode) & (new (...args: any[]) => StaticableNode) & (new (...args: any[]) => BodiedNode) & (new (...args: any[]) => FunctionLikeDeclaration) & (new (...args: any[]) => PropertyNamedNode) & typeof Node; export declare class GetAccessorDeclaration extends GetAccessorDeclarationBase<ts.GetAccessorDeclaration> { /** * Gets the corresponding set accessor if one exists. */ getSetAccessor(): SetAccessorDeclaration | undefined; /** * Gets the corresponding set accessor or throws if not exists. */ getSetAccessorOrThrow(): SetAccessorDeclaration; /** * Removes the get accessor. */ remove(): void; }