UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

21 lines (20 loc) 386 B
import * as ts from "typescript"; /** * Represents a span of text. */ export declare class TextSpan { /** Gets the compiler text span. */ readonly compilerObject: ts.TextSpan; /** * Gets the start. */ getStart(): number; /** * Gets the start + length. */ getEnd(): number; /** * Gets the length. */ getLength(): number; }