Merge pull request #1713 from realm/kneth/fix-ts-for-open_ssl_verify_callback

Fixing TS definition for open_ssl_verify_callback.
This commit is contained in:
Kenneth Geisshirt 2018-05-07 14:29:25 +02:00 committed by GitHub
commit b01dcb44cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -13,7 +13,7 @@ X.Y.Z Release notes
* None. * None.
### Bug fixes ### Bug fixes
* None. * Fixed TypeScript defintion for `open_ssl_verify_callback` configuration option (#1652).
### Internal ### Internal
* Updated to Relm Sync 3.3.0. * Updated to Relm Sync 3.3.0.

10
lib/index.d.ts vendored
View File

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