mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 06:46:03 +00:00
Typescript definition for ssl_verify_callback.
This commit is contained in:
parent
c1e198cbab
commit
508a547898
2
lib/index.d.ts
vendored
2
lib/index.d.ts
vendored
@ -342,12 +342,14 @@ declare namespace Realm.Sync {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ErrorCallback = (message?: string, isFatal?: boolean, category?: string, code?: number) => void;
|
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 {
|
interface SyncConfiguration {
|
||||||
user: User;
|
user: User;
|
||||||
url: string;
|
url: string;
|
||||||
validate_ssl?: boolean;
|
validate_ssl?: boolean;
|
||||||
ssl_trust_certificate_path?: string;
|
ssl_trust_certificate_path?: string;
|
||||||
|
ssl_verify_callback?: SSLVerifyCallback;
|
||||||
error?: ErrorCallback;
|
error?: ErrorCallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user