Typescript definition for ssl_verify_callback.
This commit is contained in:
parent
c1e198cbab
commit
508a547898
|
@ -342,12 +342,14 @@ declare namespace Realm.Sync {
|
|||
}
|
||||
|
||||
type ErrorCallback = (message?: string, isFatal?: boolean, category?: string, code?: number) => void;
|
||||
type SSLVerifyCallback = (serverAddress: string, serverPort: number, pemCertificate: string, preverifyOk: number, depth: number) => boolean;
|
||||
|
||||
interface SyncConfiguration {
|
||||
user: User;
|
||||
url: string;
|
||||
validate_ssl?: boolean;
|
||||
ssl_trust_certificate_path?: string;
|
||||
ssl_verify_callback?: SSLVerifyCallback;
|
||||
error?: ErrorCallback;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue