serwist
Version:
A Swiss Army knife for service workers.
40 lines • 1.25 kB
TypeScript
export interface CacheNameDetails {
googleAnalytics: string;
precache: string;
prefix: string;
runtime: string;
suffix: string;
}
export interface PartialCacheNameDetails {
/**
* The string to add to the beginning of the precache and runtime cache names.
*/
prefix?: string;
/**
* The string to add to the end of the precache and runtime cache names.
*/
suffix?: string;
/**
* The cache name to use for precache caching.
*/
precache?: string;
/**
* The cache name to use for runtime caching.
*/
runtime?: string;
/**
* The cache name to use for {@linkcode initializeGoogleAnalytics}.
*/
googleAnalytics?: string;
[propName: string]: string | undefined;
}
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;
};
//# sourceMappingURL=cacheNames.d.ts.map