From 759622b8910e727d5f70a5fc8913b4f1b940d95e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Vidal?= Date: Thu, 29 Aug 2024 10:09:35 +0200 Subject: [PATCH] fix: typos in NotificationEventCallbacks (#664) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sébastien VIDAL --- 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;