refactor: TypeScript 3.7 fixes. (#34372)
refactor: TypeScript 3.7 fixes. (#34372)

This PR fixes more TypeScript 3.7 compilation issues.

PR Close #34372

filipesilva/angular,Toxicable/angular,blesh/angular,StephenFluin/angular,angular/angular,matsko/angular,shairez/angular,alxhub/angular,filipesilva/angular,shairez/angular,Toxicable/angular,vikerman/angular,mgechev/angular,mgechev/angular,alxhub/angular,matsko/angular,vikerman/angular,shairez/angular,gnomeontherun/angular,gnomeontherun/angular,filipesilva/angular,gdi2290/angular,angular-indonesia/angular,angular-indonesia/angular,StephenFluin/angular,gkalpak/angular,angular/angular,matsko/angular,angular/angular,brandonroberts/angular,Toxicable/angular,IdeaBlade/angular,ocombe/angular,wKoza/angular,manekinekko/angular,gkalpak/angular,shairez/angular,ocombe/angular,mgechev/angular,gnomeontherun/angular,gdi2290/angular,vikerman/angular,Toxicable/angular,snaptech/angular,IdeaBlade/angular,gkalpak/angular,IdeaBlade/angular,brandonroberts/angular,wKoza/angular,angular-indonesia/angular,gkalpak/angular,shairez/angular,wKoza/angular,gdi2290/angular,manekinekko/angular,snaptech/angular,manekinekko/angular,IdeaBlade/angular,blesh/angular,StephenFluin/angular,StephenFluin/angular,angular-indonesia/angular,JiaLiPassion/angular,brandonroberts/angular,IdeaBlade/angular,filipesilva/angular,mgechev/angular,matsko/angular,gdi2290/angular,manekinekko/angular,blesh/angular,wKoza/angular,blesh/angular,JiaLiPassion/angular,filipesilva/angular,vikerman/angular,alxhub/angular,angular/angular,ocombe/angular,wKoza/angular,manekinekko/angular,wKoza/angular,JiaLiPassion/angular,manekinekko/angular,Toxicable/angular,alxhub/angular,brandonroberts/angular,snaptech/angular,ocombe/angular,brandonroberts/angular,snaptech/angular,Toxicable/angular,blesh/angular,StephenFluin/angular,alxhub/angular,matsko/angular,JiaLiPassion/angular,ocombe/angular,brandonroberts/angular,vikerman/angular,ocombe/angular,snaptech/angular,gdi2290/angular,gdi2290/angular,vikerman/angular,gnomeontherun/angular,mgechev/angular,snaptech/angular