UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

27 lines (26 loc) 647 B
import * as ts from "typescript"; /** * Diagnostic message chain. */ export declare class DiagnosticMessageChain { /** * Gets the underlying compiler object. */ readonly compilerObject: ts.DiagnosticMessageChain; /** * Gets the message text. */ getMessageText(): string; /** * Gets th enext diagnostic message chain in the chain. */ getNext(): DiagnosticMessageChain | undefined; /** * Gets the code of the diagnostic message chain. */ getCode(): number; /** * Gets the category of the diagnostic message chain. */ getCategory(): ts.DiagnosticCategory; }