( allDiagnostics: ReadonlyArray<ts.Diagnostic>, options?: api.CompilerOptions, consoleError: (s: string) => void = console.error, )
| 200 | } |
| 201 | |
| 202 | function reportErrorsAndExit( |
| 203 | allDiagnostics: ReadonlyArray<ts.Diagnostic>, |
| 204 | options?: api.CompilerOptions, |
| 205 | consoleError: (s: string) => void = console.error, |
| 206 | ): number { |
| 207 | const errorsAndWarnings = allDiagnostics.filter( |
| 208 | (d) => d.category !== ts.DiagnosticCategory.Message, |
| 209 | ); |
| 210 | printDiagnostics(errorsAndWarnings, options, consoleError); |
| 211 | return exitCodeFromResult(allDiagnostics); |
| 212 | } |
| 213 | |
| 214 | export function watchMode( |
| 215 | project: string, |
no test coverage detected
searching dependent graphs…