serwist
Version:
A Swiss Army knife for service workers.
17 lines • 767 B
TypeScript
import type { RouteHandlerCallback } from "../types.js";
/**
* Helper function that calls {@linkcode PrecacheController.createHandlerBoundToURL}
* on the default {@linkcode PrecacheController} instance.
*
* If you are creating your own {@linkcode PrecacheController}, then call the
* {@linkcode PrecacheController.createHandlerBoundToURL} function on that instance
* instead of using this function.
*
* @param url The precached URL which will be used to look up the response.
* @param fallbackToNetwork Whether to attempt to get the
* response from the network if there's a precache miss.
* @return
* @deprecated
*/
export declare const createHandlerBoundToURL: (url: string) => RouteHandlerCallback;
//# sourceMappingURL=createHandlerBoundToURL.d.ts.map