ts-simple-ast
Version:
TypeScript compiler wrapper for AST navigation and code generation.
19 lines (18 loc) • 387 B
TypeScript
import * as ts from "typescript";
import { TextSpan } from "./TextSpan";
/**
* Represents a text change.
*/
export declare class TextChange {
private _span;
/** Gets the compiler text change. */
readonly compilerObject: ts.TextChange;
/**
* Gets the text span.
*/
getSpan(): TextSpan;
/**
* Gets the new text.
*/
getNewText(): string;
}