UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

20 lines (19 loc) 624 B
import * as ts from "typescript"; import { NamedNode } from "./../base"; import { Node } from "./../common"; import { TypeNode } from "./TypeNode"; export declare const TypeParameterDeclarationBase: (new (...args: any[]) => NamedNode) & typeof Node; export declare class TypeParameterDeclaration extends TypeParameterDeclarationBase<ts.TypeParameterDeclaration> { /** * Gets the constraint node. */ getConstraintNode(): TypeNode | undefined; /** * Gets the default node. */ getDefaultNode(): TypeNode | undefined; /** * Removes this type parameter. */ remove(): void; }