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 { GetAccessorDeclaration } from "./GetAccessorDeclaration"; export declare const SetAccessorDeclarationBase: (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 SetAccessorDeclaration extends SetAccessorDeclarationBase<ts.SetAccessorDeclaration> { /** * Gets the corresponding get accessor if one exists. */ getGetAccessor(): GetAccessorDeclaration | undefined; /** * Gets the corresponding get accessor or throws if not exists. */ getGetAccessorOrThrow(): GetAccessorDeclaration; /** * Removes the set accessor. */ remove(): void; }