ts-simple-ast
Version:
TypeScript compiler wrapper for AST navigation and code generation.
11 lines (10 loc) • 414 B
TypeScript
import { Constructor } from "./../../Constructor";
import { Node } from "./../common";
export declare type UnwrappableNodeExtensionType = Node;
export interface UnwrappableNode {
/**
* Replaces the node's text with its body's statements.
*/
unwrap(): void;
}
export declare function UnwrappableNode<T extends Constructor<UnwrappableNodeExtensionType>>(Base: T): Constructor<UnwrappableNode> & T;