serwist
Version:
A Swiss Army knife for service workers.
10 lines • 406 B
TypeScript
import type { RouteHandler } from "../types.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 handler A callback function that returns a promise resulting in a response.
* @deprecated
*/
export declare const setCatchHandler: (handler: RouteHandler) => void;
//# sourceMappingURL=setCatchHandler.d.ts.map