@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.
- package/lib/routes.middleware.ts +8 -2
- package/package.json +1 -1
package/lib/routes.middleware.ts
CHANGED
|
@@ -290,14 +290,20 @@ export interface RouteObjectReturn {
|
|
|
290
290
|
json?: any
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
export
|
|
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 {
|