|
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
|
| Rev | Line | |
|---|
| [9af201e] | 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 };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.