diff --git a/types/workbox-background-sync/Queue.d.ts b/types/workbox-background-sync/Queue.d.ts index 67257dd4c9..462f01f894 100644 --- a/types/workbox-background-sync/Queue.d.ts +++ b/types/workbox-background-sync/Queue.d.ts @@ -9,9 +9,17 @@ export class Queue { unshiftRequest(entry: QueueEntry): Promise; } +export interface QueueOnSyncEvent { + queue: Queue; +} + +export interface QueueOnSyncHandler { + (options: QueueOnSyncEvent): void|Promise; +} + export interface QueueOptions { maxRetentionTime?: number; - onSync?: () => void; + onSync?: QueueOnSyncHandler; } export interface QueueEntry {