createHandler.d.ts 702 B

123456789101112131415161718
  1. import './_version.js';
  2. /**
  3. * Helper function that calls
  4. * {@link PrecacheController#createHandler} on the default
  5. * {@link PrecacheController} instance.
  6. *
  7. * If you are creating your own {@link PrecacheController}, then call the
  8. * {@link PrecacheController#createHandler} on that instance,
  9. * instead of using this function.
  10. *
  11. * @param {boolean} [fallbackToNetwork=true] Whether to attempt to get the
  12. * response from the network if there's a precache miss.
  13. * @return {module:workbox-routing~handlerCallback}
  14. *
  15. * @memberof module:workbox-precaching
  16. */
  17. declare function createHandler(fallbackToNetwork?: boolean): import("workbox-core/types").RouteHandlerCallback;
  18. export { createHandler };