UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

28 lines (27 loc) 1.53 kB
import * as ts from "typescript"; import { GetAccessorDeclarationStructure } from "./../../structures"; import { Node } from "./../common"; import { PropertyNamedNode, StaticableNode, ScopedNode, DecoratableNode, BodiedNode, TextInsertableNode, ChildOrderableNode } from "./../base"; import { FunctionLikeDeclaration } from "./../function"; import { AbstractableNode } from "./base"; import { SetAccessorDeclaration } from "./SetAccessorDeclaration"; export declare const GetAccessorDeclarationBase: (new (...args: any[]) => ChildOrderableNode) & (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> { /** * Fills the node from a structure. * @param structure - Structure to fill. */ fill(structure: Partial<GetAccessorDeclarationStructure>): this; /** * 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; }