serwist
Version:
A Swiss Army knife for service workers.
19 lines • 817 B
TypeScript
import { Route } from "../Route.js";
import type { PrecacheRouteOptions } from "../types.js";
import type { PrecacheController } from "./PrecacheController.js";
/**
* A subclass of {@linkcode Route} that takes a {@linkcode PrecacheController}
* instance and uses it to match incoming requests and handle fetching
* responses from the precache.
* @deprecated
*/
export declare class PrecacheRoute extends Route {
/**
* @param precacheController A {@linkcode PrecacheController}
* instance used to both match requests and respond to `fetch` events.
* @param options Options to control how requests are matched
* against the list of precached URLs.
*/
constructor(precacheController: PrecacheController, options?: PrecacheRouteOptions);
}
//# sourceMappingURL=PrecacheRoute.d.ts.map