File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11/*@internal */
22namespace ts {
3- const sysFormatDiagnosticsHost : FormatDiagnosticsHost = sys ? {
3+ const sysFormatDiagnosticsHost : FormatDiagnosticsHost | undefined = sys ? {
44 getCurrentDirectory : ( ) => sys . getCurrentDirectory ( ) ,
55 getNewLine : ( ) => sys . newLine ,
66 getCanonicalFileName : createGetCanonicalFileName ( sys . useCaseSensitiveFileNames )
7- } : undefined ! ; // TODO: GH#18217
7+ } : undefined ;
88
99 /**
1010 * Create a function that reports error by writing to the system and handles the formating of the diagnostic
1111 */
1212 export function createDiagnosticReporter ( system : System , pretty ?: boolean ) : DiagnosticReporter {
13- const host : FormatDiagnosticsHost = system === sys ? sysFormatDiagnosticsHost : {
13+ const host : FormatDiagnosticsHost = system === sys && sysFormatDiagnosticsHost ? sysFormatDiagnosticsHost : {
1414 getCurrentDirectory : ( ) => system . getCurrentDirectory ( ) ,
1515 getNewLine : ( ) => system . newLine ,
1616 getCanonicalFileName : createGetCanonicalFileName ( system . useCaseSensitiveFileNames ) ,
You can’t perform that action at this time.
0 commit comments