Add param type to addConnectionNotification/removeConnectionNotification (#2003)

This commit is contained in:
Gabriele Petronella 2018-09-03 08:35:21 +02:00 committed by Kenneth Geisshirt
parent 81cb7c4636
commit 760ddd578f
2 changed files with 3 additions and 2 deletions

View File

@ -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.

4
lib/index.d.ts vendored
View File

@ -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;
}