setCacheNameDetails.d.ts 923 B

123456789101112131415161718192021
  1. import { PartialCacheNameDetails } from './_private/cacheNames.js';
  2. import './_version.js';
  3. /**
  4. * Modifies the default cache names used by the Workbox packages.
  5. * Cache names are generated as `<prefix>-<Cache Name>-<suffix>`.
  6. *
  7. * @param {Object} details
  8. * @param {Object} [details.prefix] The string to add to the beginning of
  9. * the precache and runtime cache names.
  10. * @param {Object} [details.suffix] The string to add to the end of
  11. * the precache and runtime cache names.
  12. * @param {Object} [details.precache] The cache name to use for precache
  13. * caching.
  14. * @param {Object} [details.runtime] The cache name to use for runtime caching.
  15. * @param {Object} [details.googleAnalytics] The cache name to use for
  16. * `workbox-google-analytics` caching.
  17. *
  18. * @memberof module:workbox-core
  19. */
  20. declare function setCacheNameDetails(details: PartialCacheNameDetails): void;
  21. export { setCacheNameDetails };