index.d.ts 1.3 KB

123456789101112131415161718192021222324252627
  1. import { addPlugins } from './addPlugins.js';
  2. import { addRoute } from './addRoute.js';
  3. import { cleanupOutdatedCaches } from './cleanupOutdatedCaches.js';
  4. import { createHandlerBoundToURL } from './createHandlerBoundToURL.js';
  5. import { getCacheKeyForURL } from './getCacheKeyForURL.js';
  6. import { matchPrecache } from './matchPrecache.js';
  7. import { precache } from './precache.js';
  8. import { precacheAndRoute } from './precacheAndRoute.js';
  9. import { PrecacheController } from './PrecacheController.js';
  10. import { PrecacheRoute } from './PrecacheRoute.js';
  11. import { PrecacheStrategy } from './PrecacheStrategy.js';
  12. import { PrecacheFallbackPlugin } from './PrecacheFallbackPlugin.js';
  13. import './_version.js';
  14. /**
  15. * Most consumers of this module will want to use the
  16. * {@link workbox-precaching.precacheAndRoute}
  17. * method to add assets to the cache and respond to network requests with these
  18. * cached assets.
  19. *
  20. * If you require more control over caching and routing, you can use the
  21. * {@link workbox-precaching.PrecacheController}
  22. * interface.
  23. *
  24. * @module workbox-precaching
  25. */
  26. export { addPlugins, addRoute, cleanupOutdatedCaches, createHandlerBoundToURL, getCacheKeyForURL, matchPrecache, precache, precacheAndRoute, PrecacheController, PrecacheRoute, PrecacheStrategy, PrecacheFallbackPlugin, };
  27. export * from './_types.js';