oliviertassinari / serviceworker-webpack-plugin

Simplifies creation of a service worker to serve your webpack bundles. :recycle:
https://oliviertassinari.github.io/serviceworker-webpack-plugin/
MIT License
458 stars 76 forks source link

typescript definitions #98

Open agentschmitt opened 5 years ago

agentschmitt commented 5 years ago

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x ] feature request

Versions.

webpack version: 4

Desired or expected functionality

I want to import the runtime in my typescript project. import serviceworker from 'serviceworker-webpack-plugin/lib/runtime'; serviceworker.register()

But without typescript defintions serviceworker.register() is an unknown function.

Mention any other details that might be useful.

I would make an pull request for this.