Use a single object instead of multiple arguments.

This commit is contained in:
Kenneth Geisshirt 2018-04-18 14:07:19 +02:00
parent 20c16196c9
commit 5cfc3c12ee

10
lib/index.d.ts vendored
View File

@ -368,8 +368,16 @@ declare namespace Realm.Sync {
code: number;
}
interface SSLVerifyObject {
serverAddress: string;
serverPort: number;
pemCertificate: string;
acceptedByOpenSSL: boolean;
depth: number;
}
type ErrorCallback = (session: Session, error: SyncError) => void;
type SSLVerifyCallback = (serverAddress: string, serverPort: number, pemCertificate: string, acceptedByOpenSSL: boolean, depth: number) => boolean;
type SSLVerifyCallback = (sslVerifyObject: SSLVerifyObject) => boolean;
interface SyncConfiguration {
user: User;