serwist
Version:
A Swiss Army knife for service workers.
14 lines • 659 B
TypeScript
import type { PrecacheRouteOptions } from "../types.js";
/**
* Add a `fetch` listener that will
* respond to [network requests](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#Custom_responses_to_requests)
* with precached assets to the service worker.
*
* As for requests for assets that aren't precached, the `fetch` event will not be
* responded to, allowing the event to fall through to other `fetch` event listeners.
*
* @param options See {@linkcode PrecacheRouteOptions}.
* @deprecated
*/
export declare const addRoute: (options?: PrecacheRouteOptions) => void;
//# sourceMappingURL=addRoute.d.ts.map