UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

7 lines (6 loc) 265 B
import * as ts from "typescript"; import { SourceFile } from "./../compiler"; export declare function createTempSourceFile(filePath: string, sourceText: string, opts?: { createLanguageService?: boolean; compilerOptions?: ts.CompilerOptions; }): SourceFile;