Urara-Blog/node_modules/.pnpm-store/v3/files/ac/7c89298d7d0e44072ffc061fb2c8a9e1ce167d24f29884a6af48aa161e818defba82c5b45bf76a50d326750dcdc935754d222920f87e0a4bdf374b7a7dd2dd
2022-08-14 01:14:53 +08:00

27 lines
917 B
Text

import { WorkboxPlugin } from 'workbox-core/types.js';
import { QueueOptions } from './Queue.js';
import './_version.js';
/**
* A class implementing the `fetchDidFail` lifecycle callback. This makes it
* easier to add failed requests to a background sync Queue.
*
* @memberof workbox-background-sync
*/
declare class BackgroundSyncPlugin implements WorkboxPlugin {
private readonly _queue;
/**
* @param {string} name See the {@link workbox-background-sync.Queue}
* documentation for parameter details.
* @param {Object} [options] See the
* {@link workbox-background-sync.Queue} documentation for
* parameter details.
*/
constructor(name: string, options?: QueueOptions);
/**
* @param {Object} options
* @param {Request} options.request
* @private
*/
fetchDidFail: WorkboxPlugin['fetchDidFail'];
}
export { BackgroundSyncPlugin };