setCatchHandler.d.ts 460 B

12345678910111213
  1. import { Handler } from './_types.js';
  2. import './_version.js';
  3. /**
  4. * If a Route throws an error while handling a request, this `handler`
  5. * will be called and given a chance to provide a response.
  6. *
  7. * @param {module:workbox-routing~handlerCallback} handler A callback
  8. * function that returns a Promise resulting in a Response.
  9. *
  10. * @memberof module:workbox-routing
  11. */
  12. declare function setCatchHandler(handler: Handler): void;
  13. export { setCatchHandler };