UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

16 lines (15 loc) 475 B
import * as ts from "typescript"; import { Constructor } from "./../../Constructor"; import { Node } from "./../common"; export declare type BodiedNodeExtensionType = Node<ts.Node>; export interface BodiedNode { /** * Gets the body. */ getBody(): Node; /** * Sets the body text. */ setBodyText(text: string): this; } export declare function BodiedNode<T extends Constructor<BodiedNodeExtensionType>>(Base: T): Constructor<BodiedNode> & T;