source: frontend/node_modules/workbox-background-sync/index.d.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 777 bytes
Line 
1import { BackgroundSyncPlugin } from './BackgroundSyncPlugin.js';
2import { Queue, QueueOptions } from './Queue.js';
3import { QueueStore } from './QueueStore.js';
4import { StorableRequest } from './StorableRequest.js';
5import './_version.js';
6interface SyncManager {
7 getTags(): Promise<string[]>;
8 register(tag: string): Promise<void>;
9}
10declare global {
11 interface ServiceWorkerRegistration {
12 readonly sync: SyncManager;
13 }
14 interface SyncEvent extends ExtendableEvent {
15 readonly lastChance: boolean;
16 readonly tag: string;
17 }
18 interface ServiceWorkerGlobalScopeEventMap {
19 sync: SyncEvent;
20 }
21}
22/**
23 * @module workbox-background-sync
24 */
25export { BackgroundSyncPlugin, Queue, QueueOptions, QueueStore, StorableRequest };
Note: See TracBrowser for help on using the repository browser.