|
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
|
| Line | |
|---|
| 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 |
|
|---|
| 9 | import {BackgroundSyncPlugin} from './BackgroundSyncPlugin.js';
|
|---|
| 10 | import {Queue, QueueOptions} from './Queue.js';
|
|---|
| 11 | import {QueueStore} from './QueueStore.js';
|
|---|
| 12 | import {StorableRequest} from './StorableRequest.js';
|
|---|
| 13 |
|
|---|
| 14 | import './_version.js';
|
|---|
| 15 |
|
|---|
| 16 | // See https://github.com/GoogleChrome/workbox/issues/2946
|
|---|
| 17 | interface SyncManager {
|
|---|
| 18 | getTags(): Promise<string[]>;
|
|---|
| 19 | register(tag: string): Promise<void>;
|
|---|
| 20 | }
|
|---|
| 21 |
|
|---|
| 22 | declare 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 | */
|
|---|
| 40 | export {BackgroundSyncPlugin, Queue, QueueOptions, QueueStore, StorableRequest};
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.