source: frontend/node_modules/workbox-recipes/googleFontsCache.d.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 813 bytes
RevLine 
[9af201e]1import './_version.js';
2export 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 */
17declare function googleFontsCache(options?: GoogleFontCacheOptions): void;
18export { googleFontsCache };
Note: See TracBrowser for help on using the repository browser.