refactor(elements): add accessor workaround for build-optimizer (#37456)
refactor(elements): add accessor workaround for build-optimizer (#37456)

Build-optimizer currently uses TypeScript 3.6 which is unable to resolve an 'accessor' in 'getTypeOfVariableOrParameterOrPropertyWorker'.

Unfortunately, in Build optimizer we cannot update the version of TypeScript because of https://github.com/microsoft/TypeScript/issues/38412

PR Close #37456

gkalpak/angular,blesh/angular,shairez/angular,wKoza/angular,angular-indonesia/angular,gdi2290/angular,blesh/angular,gnomeontherun/angular,gkalpak/angular,ocombe/angular,gnomeontherun/angular,alxhub/angular,angular-indonesia/angular,mgechev/angular,filipesilva/angular,gdi2290/angular,gdi2290/angular,filipesilva/angular,shairez/angular,IdeaBlade/angular,brandonroberts/angular,IdeaBlade/angular,ocombe/angular,IdeaBlade/angular,JiaLiPassion/angular,brandonroberts/angular,angular-indonesia/angular,manekinekko/angular,manekinekko/angular,ocombe/angular,IdeaBlade/angular,ocombe/angular,blesh/angular,JiaLiPassion/angular,IdeaBlade/angular,wKoza/angular,wKoza/angular,angular/angular,mgechev/angular,gkalpak/angular,gdi2290/angular,alxhub/angular,blesh/angular,angular/angular,alxhub/angular,shairez/angular,wKoza/angular,gdi2290/angular,JiaLiPassion/angular,mgechev/angular,manekinekko/angular,JiaLiPassion/angular,mgechev/angular,brandonroberts/angular,angular-indonesia/angular,filipesilva/angular,alxhub/angular,wKoza/angular,ocombe/angular,manekinekko/angular,brandonroberts/angular,brandonroberts/angular,gnomeontherun/angular,filipesilva/angular,gnomeontherun/angular,shairez/angular,manekinekko/angular,wKoza/angular,gkalpak/angular,alxhub/angular,shairez/angular,angular/angular,filipesilva/angular,brandonroberts/angular,mgechev/angular,ocombe/angular,blesh/angular,manekinekko/angular,angular/angular,gdi2290/angular