precacheAndRoute.d.ts 690 B

123456789101112131415161718
  1. import { PrecacheRouteOptions, PrecacheEntry } from './_types.js';
  2. import './_version.js';
  3. /**
  4. * This method will add entries to the precache list and add a route to
  5. * respond to fetch events.
  6. *
  7. * This is a convenience method that will call
  8. * {@link workbox-precaching.precache} and
  9. * {@link workbox-precaching.addRoute} in a single call.
  10. *
  11. * @param {Array<Object|string>} entries Array of entries to precache.
  12. * @param {Object} [options] See the
  13. * {@link workbox-precaching.PrecacheRoute} options.
  14. *
  15. * @memberof workbox-precaching
  16. */
  17. declare function precacheAndRoute(entries: Array<PrecacheEntry | string>, options?: PrecacheRouteOptions): void;
  18. export { precacheAndRoute };