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

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

Fix frontend appearance

  • Property mode set to 100644
File size: 983 bytes
RevLine 
[9af201e]1/*
2 Copyright 2018 Google LLC
3
4 Use of this source code is governed by an MIT-style
5 license that can be found in the LICENSE file or at
6 https://opensource.org/licenses/MIT.
7*/
8
9import {BackgroundSyncPlugin} from './BackgroundSyncPlugin.js';
10import {Queue, QueueOptions} from './Queue.js';
11import {QueueStore} from './QueueStore.js';
12import {StorableRequest} from './StorableRequest.js';
13
14import './_version.js';
15
16// See https://github.com/GoogleChrome/workbox/issues/2946
17interface SyncManager {
18 getTags(): Promise<string[]>;
19 register(tag: string): Promise<void>;
20}
21
22declare global {
23 interface ServiceWorkerRegistration {
24 readonly sync: SyncManager;
25 }
26
27 interface SyncEvent extends ExtendableEvent {
28 readonly lastChance: boolean;
29 readonly tag: string;
30 }
31
32 interface ServiceWorkerGlobalScopeEventMap {
33 sync: SyncEvent;
34 }
35}
36
37/**
38 * @module workbox-background-sync
39 */
40export {BackgroundSyncPlugin, Queue, QueueOptions, QueueStore, StorableRequest};
Note: See TracBrowser for help on using the repository browser.