Typescript serviceWorker.register() types fails out of the box because of required config parameter
Created by: eddedd88
Environment
Typescript
Steps to Reproduce
- Start an app with typescript:
create-react-app --typescript test-app
- Enable PWA by following the steps here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
- The method
serviceWorker.register()
works fine in js, but in typescript theconfig
argument is mandatory which causes the build to fail.