googleFontsCache.d.ts 813 B

123456789101112131415161718
  1. import './_version.js';
  2. export interface GoogleFontCacheOptions {
  3. cachePrefix?: string;
  4. maxAgeSeconds?: number;
  5. maxEntries?: number;
  6. }
  7. /**
  8. * An implementation of the [Google fonts]{@link https://developers.google.com/web/tools/workbox/guides/common-recipes#google_fonts} caching recipe
  9. *
  10. * @memberof workbox-recipes
  11. *
  12. * @param {Object} [options]
  13. * @param {string} [options.cachePrefix] Cache prefix for caching stylesheets and webfonts. Defaults to google-fonts
  14. * @param {number} [options.maxAgeSeconds] Maximum age, in seconds, that font entries will be cached for. Defaults to 1 year
  15. * @param {number} [options.maxEntries] Maximum number of fonts that will be cached. Defaults to 30
  16. */
  17. declare function googleFontsCache(options?: GoogleFontCacheOptions): void;
  18. export { googleFontsCache };