From 760ddd578f8e9bb26fa52533129cd10121160d90 Mon Sep 17 00:00:00 2001 From: Gabriele Petronella Date: Mon, 3 Sep 2018 08:35:21 +0200 Subject: [PATCH] Add param type to addConnectionNotification/removeConnectionNotification (#2003) --- CHANGELOG.md | 1 + lib/index.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8eb7f717..856afd89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ Server and open synchronized Realms (#1276). ### Bug fixes * Removed a false negative warning when using `User.createConfiguration`. * Fixed the type definition for `User.authenticate`. +* Fixed the type definitions for `Session.addConnectionNotification` and `Session.removeConnectionNotification` ### Internal * Realm Core v5.7.2. diff --git a/lib/index.d.ts b/lib/index.d.ts index 2cc415d0..e53614f8 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -466,8 +466,8 @@ declare namespace Realm.Sync { addProgressNotification(direction: ProgressDirection, mode: ProgressMode, progressCallback: ProgressNotificationCallback): void; removeProgressNotification(progressCallback: ProgressNotificationCallback): void; - addConnectionNotification(callback): void; - removeConnectionNotification(callback): void; + addConnectionNotification(callback: ConnectionNotificationCallback): void; + removeConnectionNotification(callback: ConnectionNotificationCallback): void; isConnected(): boolean; }