mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-26 22:39:05 +00:00
Use a single object instead of multiple arguments.
This commit is contained in:
parent
20c16196c9
commit
5cfc3c12ee
10
lib/index.d.ts
vendored
10
lib/index.d.ts
vendored
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user