Typescript definition for ssl_verify_callback.

This commit is contained in:
Morten Krogh 2017-09-22 12:40:34 +02:00
parent c1e198cbab
commit 508a547898
1 changed files with 16 additions and 14 deletions

2
lib/index.d.ts vendored
View File

@ -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;
}