UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

18 lines (17 loc) 858 B
import * as ts from "typescript"; import { MethodSignatureStructure } from "./../../structures"; import { Node } from "./../common"; import { PropertyNamedNode, QuestionTokenableNode, DocumentationableNode } from "./../base"; import { SignaturedDeclaration } from "./../function"; export declare const MethodSignatureBase: (new (...args: any[]) => DocumentationableNode) & (new (...args: any[]) => QuestionTokenableNode) & (new (...args: any[]) => SignaturedDeclaration) & (new (...args: any[]) => PropertyNamedNode) & typeof Node; export declare class MethodSignature extends MethodSignatureBase<ts.MethodSignature> { /** * Fills the node from a structure. * @param structure - Structure to fill. */ fill(structure: Partial<MethodSignatureStructure>): this; /** * Removes this method signature. */ remove(): void; }