index.d.ts 896 B

1234567891011121314151617181920
  1. import { CacheFirst } from './CacheFirst.js';
  2. import { CacheOnly } from './CacheOnly.js';
  3. import { NetworkFirst, NetworkFirstOptions } from './NetworkFirst.js';
  4. import { NetworkOnly, NetworkOnlyOptions } from './NetworkOnly.js';
  5. import { StaleWhileRevalidate } from './StaleWhileRevalidate.js';
  6. import { Strategy, StrategyOptions } from './Strategy.js';
  7. import { StrategyHandler } from './StrategyHandler.js';
  8. import './_version.js';
  9. declare global {
  10. interface FetchEvent {
  11. readonly preloadResponse: Promise<any>;
  12. }
  13. }
  14. /**
  15. * There are common caching strategies that most service workers will need
  16. * and use. This module provides simple implementations of these strategies.
  17. *
  18. * @module workbox-strategies
  19. */
  20. export { CacheFirst, CacheOnly, NetworkFirst, NetworkFirstOptions, NetworkOnly, NetworkOnlyOptions, StaleWhileRevalidate, Strategy, StrategyHandler, StrategyOptions, };