UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

12 lines (11 loc) 559 B
import { Constructor } from "./../../Constructor"; import { Node } from "./../common"; import { NamespaceDeclaration } from "./NamespaceDeclaration"; export declare type NamespaceChildableNodeExtensionType = Node; export interface NamespaceChildableNode { /** * Gets the parent namespace or undefined if it doesn't exist. */ getParentNamespace(): NamespaceDeclaration | undefined; } export declare function NamespaceChildableNode<T extends Constructor<NamespaceChildableNodeExtensionType>>(Base: T): Constructor<NamespaceChildableNode> & T;