From 1e74c67d9bb150661a0945d176a653e53ffefe5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20VIDAL?= Date: Tue, 20 Aug 2024 15:27:12 +0200 Subject: [PATCH] NotificationEventCallbacks corrections --- build/lib/events.d.ts | 4 ++-- src/lib/events.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/lib/events.d.ts b/build/lib/events.d.ts index 60b4903a..6bcf00e8 100644 --- a/build/lib/events.d.ts +++ b/build/lib/events.d.ts @@ -42,8 +42,8 @@ export declare type FirmwareUpdateNotificationCallback = (releaseNotes: string, export declare type InternetConnectivityChangedCallback = (connected: boolean) => void; export interface NotificationEventCallbacks { "rebooting": RebootNotificationCallback; - "internet connectivity changed": FirmwareUpdateNotificationCallback; - "firmware update available": InternetConnectivityChangedCallback; + "internet connectivity changed": InternetConnectivityChangedCallback; + "firmware update available": FirmwareUpdateNotificationCallback; } export declare type NotificationEvents = keyof NotificationEventCallbacks; export declare type AllEventCallbacks = Merge, Merge>; diff --git a/src/lib/events.ts b/src/lib/events.ts index 14fef011..ef496e5e 100644 --- a/src/lib/events.ts +++ b/src/lib/events.ts @@ -67,8 +67,8 @@ export type InternetConnectivityChangedCallback = (connected: boolean) => void; export interface NotificationEventCallbacks { "rebooting": RebootNotificationCallback; - "internet connectivity changed": FirmwareUpdateNotificationCallback; - "firmware update available": InternetConnectivityChangedCallback; + "internet connectivity changed": InternetConnectivityChangedCallback; + "firmware update available": FirmwareUpdateNotificationCallback; } export type NotificationEvents = keyof NotificationEventCallbacks;