serwist
Version:
A Swiss Army knife for service workers.
14 lines • 597 B
TypeScript
import type { PrecacheEntry, PrecacheRouteOptions } from "../types.js";
/**
* This method will add entries to the precache list and add a route to
* respond to `fetch` events.
*
* This is a convenience method that will call
* {@linkcode precache} and {@linkcode addRoute} in a single call.
*
* @param entries Array of entries to precache.
* @param options See the {@linkcode PrecacheRouteOptions} options.
* @deprecated
*/
export declare const precacheAndRoute: (entries: (PrecacheEntry | string)[], options?: PrecacheRouteOptions) => void;
//# sourceMappingURL=precacheAndRoute.d.ts.map