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:
commit
b01dcb44cc
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue