12345678910111213141516171819202122232425262728293031323334353637 |
- import { HTTPMethod } from './utils/constants.js';
- import { RouteHandler, RouteHandlerObject, RouteMatchCallback } from 'workbox-core/types.js';
- import './_version.js';
- declare class Route {
- handler: RouteHandlerObject;
- match: RouteMatchCallback;
- method: HTTPMethod;
- catchHandler?: RouteHandlerObject;
-
- constructor(match: RouteMatchCallback, handler: RouteHandler, method?: HTTPMethod);
- /**
- *
- * @param {workbox-routing-handlerCallback} handler A callback
- * function that returns a Promise resolving to a Response
- */
- setCatchHandler(handler: RouteHandler): void;
- }
- export { Route };
|