UNPKG

488 BTypeScriptView Raw
1import { Diagnostic } from "typescript";
2import { DiagnosticsHandler, NormalizedOptions } from "./interfaces";
3export default class DiagnosticsHandlerImpl implements DiagnosticsHandler {
4 private throwOnError;
5 private host;
6 private write;
7 constructor(options: NormalizedOptions);
8 setWrite(write: (s: string) => void): void;
9 check(diagnostics: Diagnostic | Diagnostic[] | undefined, throwOnError?: boolean): boolean;
10 format(diagnostics: Diagnostic[]): string;
11}