refactor(service-worker): ensure compatibility with typescript strict flag (#30993)
refactor(service-worker): ensure compatibility with typescript strict flag (#30993)

As part of FW-1265, the `@angular/service-worker` package is made compatible
with the TypeScript `--strict` flag. Read more about the strict flag [here](https://www.typescriptlang.org/docs/handbook/compiler-options.html)

PR Close #30993

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