1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import { WorkboxPlugin } from 'workbox-core/types.js';
- import { BroadcastCacheUpdateOptions } from './BroadcastCacheUpdate.js';
- import './_version.js';
- declare class BroadcastUpdatePlugin implements WorkboxPlugin {
- private readonly _broadcastUpdate;
-
- constructor(options?: BroadcastCacheUpdateOptions);
- /**
- * A "lifecycle" callback that will be triggered automatically by the
- * `workbox-sw` and `workbox-runtime-caching` handlers when an entry is
- * added to a cache.
- *
- * @private
- * @param {Object} options The input object to this function.
- * @param {string} options.cacheName Name of the cache being updated.
- * @param {Response} [options.oldResponse] The previous cached value, if any.
- * @param {Response} options.newResponse The new value in the cache.
- * @param {Request} options.request The request that triggered the update.
- * @param {Request} options.event The event that triggered the update.
- */
- cacheDidUpdate: WorkboxPlugin['cacheDidUpdate'];
- }
- export { BroadcastUpdatePlugin };
|