warmStrategyCache.d.ts 479 B

123456789101112131415
  1. import { Strategy } from 'workbox-strategies/Strategy.js';
  2. import './_version.js';
  3. export interface WarmStrategyCacheOptions {
  4. urls: Array<string>;
  5. strategy: Strategy;
  6. }
  7. /**
  8. * @memberof workbox-recipes
  9. * @param {Object} options
  10. * @param {string[]} options.urls Paths to warm the strategy's cache with
  11. * @param {Strategy} options.strategy Strategy to use
  12. */
  13. declare function warmStrategyCache(options: WarmStrategyCacheOptions): void;
  14. export { warmStrategyCache };