matchPrecache.d.ts 640 B

123456789101112131415161718
  1. import './_version.js';
  2. /**
  3. * Helper function that calls
  4. * {@link PrecacheController#matchPrecache} on the default
  5. * {@link PrecacheController} instance.
  6. *
  7. * If you are creating your own {@link PrecacheController}, then call
  8. * {@link PrecacheController#matchPrecache} on that instance,
  9. * instead of using this function.
  10. *
  11. * @param {string|Request} request The key (without revisioning parameters)
  12. * to look up in the precache.
  13. * @return {Promise<Response|undefined>}
  14. *
  15. * @memberof module:workbox-precaching
  16. */
  17. declare function matchPrecache(request: string | Request): Promise<Response | undefined>;
  18. export { matchPrecache };