@@ -1074,7 +1074,7 @@ namespace ts {
1074
1074
const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule ( options , supportedExtensions ) ;
1075
1075
1076
1076
let _typeScriptVersion : Version | undefined ;
1077
- let _ignoreDeprecations = new Map < DeprecationPhase , Version > ( ) ;
1077
+ const _ignoreDeprecations = new Map < DeprecationPhase , Version > ( ) ;
1078
1078
1079
1079
// Map storing if there is emit blocking diagnostics for given input
1080
1080
const hasEmitBlockingDiagnostics = new Map < string , boolean > ( ) ;
@@ -3746,11 +3746,11 @@ namespace ts {
3746
3746
function createDeprecatedDiagnosticForOption ( name : string , value ?: string ) {
3747
3747
const version = getTypeScriptVersion ( ) ;
3748
3748
if ( version . compareTo ( getIgnoreDeprecationsVersion ( DeprecationPhase . Phase3 ) ) === Comparison . EqualTo ) {
3749
- createDiagnosticForOption ( /*onKey*/ ! value , name , undefined , Diagnostics . Flag_0_is_deprecated_please_remove_it_from_your_configuration , value || name ) ;
3749
+ createDiagnosticForOption ( /*onKey*/ ! value , name , /*option2*/ undefined , Diagnostics . Flag_0_is_deprecated_please_remove_it_from_your_configuration , value || name ) ;
3750
3750
}
3751
3751
else {
3752
3752
const nextPhase = version . compareTo ( getIgnoreDeprecationsVersion ( DeprecationPhase . Phase2 ) ) === Comparison . EqualTo ? DeprecationPhase . Phase3 : DeprecationPhase . Phase2 ;
3753
- createDiagnosticForOption ( /*onKey*/ ! value , name , undefined ,
3753
+ createDiagnosticForOption ( /*onKey*/ ! value , name , /*option2*/ undefined ,
3754
3754
Diagnostics . Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_ignoreDeprecations_Colon_2_to_silence_this_error , value || name , DeprecationPhaseToVersionMap [ nextPhase ] , typeScriptVersion ) ;
3755
3755
}
3756
3756
}
0 commit comments