kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
ServiceWorker: alphabetize type definitions
rodzic
d111c4c2d2
commit
b8cfb567d1
|
@ -21,28 +21,28 @@ declare const self: ServiceWorkerGlobalScope;
|
||||||
/** Soapbox notification data from push event. */
|
/** Soapbox notification data from push event. */
|
||||||
interface NotificationData {
|
interface NotificationData {
|
||||||
access_token?: string,
|
access_token?: string,
|
||||||
preferred_locale: string,
|
count?: number,
|
||||||
hiddenBody?: string,
|
hiddenBody?: string,
|
||||||
hiddenImage?: string,
|
hiddenImage?: string,
|
||||||
id?: string,
|
id?: string,
|
||||||
|
preferred_locale: string,
|
||||||
url: string,
|
url: string,
|
||||||
count?: number,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ServiceWorker Notification options with extra fields. */
|
/** ServiceWorker Notification options with extra fields. */
|
||||||
interface ExtendedNotificationOptions extends NotificationOptions {
|
interface ExtendedNotificationOptions extends NotificationOptions {
|
||||||
title: string,
|
|
||||||
data: NotificationData,
|
data: NotificationData,
|
||||||
|
title: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Partial clone of ServiceWorker Notification with mutability. */
|
/** Partial clone of ServiceWorker Notification with mutability. */
|
||||||
interface ClonedNotification {
|
interface ClonedNotification {
|
||||||
body?: string,
|
|
||||||
image?: string,
|
|
||||||
actions?: NotificationAction[],
|
actions?: NotificationAction[],
|
||||||
|
body?: string,
|
||||||
data: NotificationData,
|
data: NotificationData,
|
||||||
title: string,
|
image?: string,
|
||||||
tag?: string,
|
tag?: string,
|
||||||
|
title: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Status entitiy from the API (kind of). */
|
/** Status entitiy from the API (kind of). */
|
||||||
|
|
Ładowanie…
Reference in New Issue