the-forest/client/node_modules/workbox-precaching/utils/PrecacheCacheKeyPlugin.d.ts
2024-09-17 20:35:18 -04:00

18 lines
617 B
TypeScript

import { WorkboxPlugin } from 'workbox-core/types.js';
import { PrecacheController } from '../PrecacheController.js';
import '../_version.js';
/**
* A plugin, designed to be used with PrecacheController, to translate URLs into
* the corresponding cache key, based on the current revision info.
*
* @private
*/
declare class PrecacheCacheKeyPlugin implements WorkboxPlugin {
private readonly _precacheController;
constructor({ precacheController }: {
precacheController: PrecacheController;
});
cacheKeyWillBeUsed: WorkboxPlugin['cacheKeyWillBeUsed'];
}
export { PrecacheCacheKeyPlugin };