Frontend/25_01_07/mai/node_modules/workbox-routing/setCatchHandler.d.ts
szabomarton 7f4a15b9c3 asd
2025-01-28 11:38:27 +01:00

14 lines
466 B
TypeScript

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 };