hexo/node_modules/workbox-routing/setCatchHandler.d.ts

14 lines
479 B
TypeScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
import { RouteHandler } from 'workbox-core/types.js';
import './_version.js';
/**
* If a Route throws an error while handling a request, this `handler`
* will be called and given a chance to provide a response.
*
* @param {workbox-routing~handlerCallback} handler A callback
* function that returns a Promise resulting in a Response.
*
* @memberof workbox-routing
*/
declare function setCatchHandler(handler: RouteHandler): void;
export { setCatchHandler };