fix sync error (#1379)

* fix sync error
This commit is contained in:
blagoev 2017-10-04 12:29:32 +03:00 committed by Kenneth Geisshirt
parent aefd81ccf7
commit 5c9b254b4a
1 changed files with 8 additions and 1 deletions

9
lib/index.d.ts vendored
View File

@ -362,7 +362,14 @@ declare namespace Realm.Sync {
expiresAt?: Date; expiresAt?: Date;
} }
type ErrorCallback = (message?: string, isFatal?: boolean, category?: string, code?: number) => void; interface SyncError {
message: string;
isFatal: boolean
category?: string
code: number;
}
type ErrorCallback = (session: Session, error: SyncError) => void;
type SSLVerifyCallback = (serverAddress: string, serverPort: number, pemCertificate: string, preverifyOk: number, depth: number) => boolean; type SSLVerifyCallback = (serverAddress: string, serverPort: number, pemCertificate: string, preverifyOk: number, depth: number) => boolean;
interface SyncConfiguration { interface SyncConfiguration {