@jon49/sw 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -290,14 +290,20 @@ export interface RouteObjectReturn {
290
290
  json?: any
291
291
  }
292
292
 
293
- export interface RouteHandler<T> {
293
+ export type RouteHandler<T> = {
294
294
  (options: T): Promise<
295
295
  AsyncGenerator
296
296
  | Response
297
297
  | RouteObjectReturn
298
298
  | undefined
299
299
  | null
300
- | void>
300
+ | void> | (
301
+ AsyncGenerator
302
+ | Response
303
+ | RouteObjectReturn
304
+ | undefined
305
+ | null
306
+ | void)
301
307
  }
302
308
 
303
309
  export interface RoutePostHandler {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jon49/sw",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Packages for MVC service workers.",
5
5
  "type": "module",
6
6
  "files": [