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