offlineFallback.d.ts 830 B

123456789101112131415161718
  1. import './_version.js';
  2. export interface OfflineFallbackOptions {
  3. pageFallback?: string;
  4. imageFallback?: string;
  5. fontFallback?: string;
  6. }
  7. /**
  8. * An implementation of the [comprehensive fallbacks recipe]{@link https://developers.google.com/web/tools/workbox/guides/advanced-recipes#comprehensive_fallbacks}. Be sure to include the fallbacks in your precache injection
  9. *
  10. * @memberof workbox-recipes
  11. *
  12. * @param {Object} [options]
  13. * @param {string} [options.pageFallback] Precache name to match for pag fallbacks. Defaults to offline.html
  14. * @param {string} [options.imageFallback] Precache name to match for image fallbacks.
  15. * @param {string} [options.fontFallback] Precache name to match for font fallbacks.
  16. */
  17. declare function offlineFallback(options?: OfflineFallbackOptions): void;
  18. export { offlineFallback };