cacheNames.d.ts 733 B

1234567891011121314151617181920
  1. import '../_version.js';
  2. export interface CacheNameDetails {
  3. googleAnalytics: string;
  4. precache: string;
  5. prefix: string;
  6. runtime: string;
  7. suffix: string;
  8. }
  9. export interface PartialCacheNameDetails {
  10. [propName: string]: string;
  11. }
  12. export declare type CacheNameDetailsProp = 'googleAnalytics' | 'precache' | 'prefix' | 'runtime' | 'suffix';
  13. export declare const cacheNames: {
  14. updateDetails: (details: PartialCacheNameDetails) => void;
  15. getGoogleAnalyticsName: (userCacheName?: string | undefined) => string;
  16. getPrecacheName: (userCacheName?: string | undefined) => string;
  17. getPrefix: () => string;
  18. getRuntimeName: (userCacheName?: string | undefined) => string;
  19. getSuffix: () => string;
  20. };