From b8cfb567d1bb48388c342cc303fb5003adfe1027 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 26 May 2022 15:16:54 -0400 Subject: [PATCH] ServiceWorker: alphabetize type definitions --- app/soapbox/service_worker/web_push_notifications.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/soapbox/service_worker/web_push_notifications.ts b/app/soapbox/service_worker/web_push_notifications.ts index f60c21f54..099bf8f45 100644 --- a/app/soapbox/service_worker/web_push_notifications.ts +++ b/app/soapbox/service_worker/web_push_notifications.ts @@ -21,28 +21,28 @@ declare const self: ServiceWorkerGlobalScope; /** Soapbox notification data from push event. */ interface NotificationData { access_token?: string, - preferred_locale: string, + count?: number, hiddenBody?: string, hiddenImage?: string, id?: string, + preferred_locale: string, url: string, - count?: number, } /** ServiceWorker Notification options with extra fields. */ interface ExtendedNotificationOptions extends NotificationOptions { - title: string, data: NotificationData, + title: string, } /** Partial clone of ServiceWorker Notification with mutability. */ interface ClonedNotification { - body?: string, - image?: string, actions?: NotificationAction[], + body?: string, data: NotificationData, - title: string, + image?: string, tag?: string, + title: string, } /** Status entitiy from the API (kind of). */