From 5cfc3c12eece7d4c4eab2a8a4ffbf7145b3cf54f Mon Sep 17 00:00:00 2001 From: Kenneth Geisshirt Date: Wed, 18 Apr 2018 14:07:19 +0200 Subject: [PATCH] Use a single object instead of multiple arguments. --- lib/index.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index f0d5b0f9..95ffc299 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -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;