Fixing TS definition for open_ssl_verify_callback.

This commit is contained in:
Kenneth Geisshirt 2018-03-14 15:09:45 +01:00
parent 10480c1afe
commit 90cacdd6c7
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ X.Y.Z Release notes
* Added an optional user as argument to `Realm.automaticSyncConfiguration` (#1708).
### Bug fixes
* None.
* Fixed from TypeScript defintion for `open_ssl_verify_callback` configuration option (#1652).
### Internal
* None.

2
lib/index.d.ts vendored
View File

@ -369,7 +369,7 @@ declare namespace Realm.Sync {
}
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, acceptedByOpenSSL: boolean, depth: number) => boolean;
interface SyncConfiguration {
user: User;