update typescript definitions

This commit is contained in:
blagoev 2017-09-09 01:59:30 +03:00
parent 0e07287396
commit 9d02165db1
1 changed files with 2 additions and 1 deletions

3
lib/index.d.ts vendored
View File

@ -332,9 +332,10 @@ declare namespace Realm.Sync {
ssl_trust_certificate_path?: string;
}
type ProgressNotificationCallback = (transferred: number, total: number) => void;
type ProgressNotificationCallback = (transferred: number, transferable: number) => void;
type ProgressDirection = 'download' | 'upload';
type ProgressMode = 'reportIndefinitely' | 'forCurrentlyOutstandingWork';
/**
* Session
* @see { @link https://realm.io/docs/javascript/latest/api/Realm.Sync.Session.html }