UNPKG

ts-snippet

Version:

A TypeScript snippet testing library for any test framework

13 lines (12 loc) 416 B
import * as ts from "typescript"; export declare class Compiler { private _compilerOptions; private _files; private _languageService; constructor(compilerOptions?: object, rootDirectory?: string); compile(files: { [fileName: string]: string; }): ts.Program; formatDiagnostic(diagnostic: ts.Diagnostic): string; getDiagnostics(fileName: string): ts.Diagnostic[]; }