workbox-core
Version:
This module is used by a number of the other Workbox modules to share common code.
21 lines (20 loc) • 689 B
TypeScript
import '../_version.js';
export interface CacheNameDetails {
googleAnalytics: string;
precache: string;
prefix: string;
runtime: string;
suffix: string;
}
export interface PartialCacheNameDetails {
[propName: string]: string;
}
export type CacheNameDetailsProp = 'googleAnalytics' | 'precache' | 'prefix' | 'runtime' | 'suffix';
export declare const cacheNames: {
updateDetails: (details: PartialCacheNameDetails) => void;
getGoogleAnalyticsName: (userCacheName?: string) => string;
getPrecacheName: (userCacheName?: string) => string;
getPrefix: () => string;
getRuntimeName: (userCacheName?: string) => string;
getSuffix: () => string;
};