Closed sdorazio closed 4 years ago
service-worker-mock version 2.0.5 changed the signature for trigger('fetch', request) to return a single Response instead of Response[]. As a result, the type definitions are out of sync depending which version you are running.
service-worker-mock
trigger('fetch', request)
Response
Response[]
Is this a breaking change in a patch version? Sounds like it. At least it is a simple fix. Thanks!
service-worker-mock
version 2.0.5 changed the signature fortrigger('fetch', request)
to return a singleResponse
instead ofResponse[]
. As a result, the type definitions are out of sync depending which version you are running.