(diagnostic: ts.Diagnostic)
| 1 | import * as ts from "typescript"; |
| 2 | |
| 3 | export const prepareDiagnosticForFormatting = (diagnostic: ts.Diagnostic) => |
| 4 | diagnostic.source === "typescript-to-lua" ? { ...diagnostic, code: "TL" as any } : diagnostic; |
| 5 | |
| 6 | export function createDiagnosticReporter(pretty: boolean, system = ts.sys): ts.DiagnosticReporter { |
| 7 | const reporter = ts.createDiagnosticReporter(system, pretty); |
no outgoing calls
no test coverage detected