@@ -380,10 +380,15 @@ namespace ts {
380380 getCompilerOptionsDiagnostics ( ) : Diagnostic [ ] ;
381381
382382 /** @deprecated Use getEncodedSyntacticClassifications instead. */
383- getSyntacticClassifications ( fileName : string , span : TextSpan , format ?: SemanticClassificationFormat ) : ClassifiedSpan [ ] ;
383+ getSyntacticClassifications ( fileName : string , span : TextSpan , format : SemanticClassificationFormat . TwentyTwenty ) : ClassifiedSpan2020 [ ] ;
384+ getSyntacticClassifications ( fileName : string , span : TextSpan , format : SemanticClassificationFormat . Original ) : ClassifiedSpan [ ] ;
385+ getSyntacticClassifications ( fileName : string , span : TextSpan , format ?: SemanticClassificationFormat ) : ClassifiedSpan [ ] | ClassifiedSpan2020 [ ] ;
384386
385387 /** @deprecated Use getEncodedSemanticClassifications instead. */
386- getSemanticClassifications ( fileName : string , span : TextSpan , format ?: SemanticClassificationFormat ) : ClassifiedSpan [ ] ;
388+ getSemanticClassifications ( fileName : string , span : TextSpan , format : SemanticClassificationFormat . TwentyTwenty ) : ClassifiedSpan2020 [ ] ;
389+ getSemanticClassifications ( fileName : string , span : TextSpan , format : SemanticClassificationFormat . Original ) : ClassifiedSpan [ ] ;
390+ getSemanticClassifications ( fileName : string , span : TextSpan , format ?: SemanticClassificationFormat ) : ClassifiedSpan [ ] | ClassifiedSpan2020 [ ] ;
391+
387392 /** Encoded as triples of [start, length, ClassificationType]. */
388393 getEncodedSyntacticClassifications ( fileName : string , span : TextSpan ) : Classifications ;
389394
@@ -603,7 +608,12 @@ namespace ts {
603608
604609 export interface ClassifiedSpan {
605610 textSpan : TextSpan ;
606- classificationType : ClassificationTypeNames | number ;
611+ classificationType : ClassificationTypeNames ;
612+ }
613+
614+ export interface ClassifiedSpan2020 {
615+ textSpan : TextSpan ;
616+ classificationType : number ;
607617 }
608618
609619 /**
0 commit comments