Closed bodograumann closed 5 years ago
Yes,and I can't even find any guide here
That option isn't really a required property - it has a default value when unassigned:
https://github.com/yyx990803/register-service-worker/blob/master/src/index.js#L18-L19
So this is a bug in the types, no an intentionally breaking change of the API.
BTW, here's a raw diff of the published modules: https://diff.intrinsic.com/register-service-worker/1.5.2/1.6.0#file-index.js
The pull request #17 adds a new required property
registerOptions
to theHooks
type. So now existing vue/typescript applications with the defaultregisterServiceWorker.ts
will fail to build with the following error: