diff --git a/CHANGELOG.md b/CHANGELOG.md index 8386d8eb..b83f1477 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ X.Y.Z Release notes * None. ### Bug fixes -* None. +* Fixed TypeScript defintion for `open_ssl_verify_callback` configuration option (#1652). ### Internal * Updated to Relm Sync 3.3.0. diff --git a/lib/index.d.ts b/lib/index.d.ts index 7f80ad01..2f57990a 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -376,8 +376,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, preverifyOk: number, depth: number) => boolean; + type SSLVerifyCallback = (sslVerifyObject: SSLVerifyObject) => boolean; interface SyncConfiguration { user: User;