diff options
author | Jonathon Orsi <jonathon.orsi@gmail.com> | 2019-09-23 14:40:38 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-23 15:12:42 -0400 |
commit | 045e74bb39d7743b774cfd2b889bc6ce1e1ad245 (patch) | |
tree | 93a8429860a40eabaee813e6f983f64aebd8afc7 /js/lib.deno_runtime.d.ts | |
parent | 4ff04ad96f27b7073e3478630ed249eedc76af2b (diff) |
feat: Add Deno.dialTLS()
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'js/lib.deno_runtime.d.ts')
-rw-r--r-- | js/lib.deno_runtime.d.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/js/lib.deno_runtime.d.ts b/js/lib.deno_runtime.d.ts index fc4e6508f..36e49c9c2 100644 --- a/js/lib.deno_runtime.d.ts +++ b/js/lib.deno_runtime.d.ts @@ -999,8 +999,17 @@ declare namespace Deno { */ export function dial(options: DialOptions): Promise<Conn>; - // @url js/metrics.d.ts + export interface DialTLSOptions { + port: number; + hostname?: string; + } + /** + * dialTLS establishes a secure connection over TLS (transport layer security). + */ + export function dialTLS(options: DialTLSOptions): Promise<Conn>; + + // @url js/metrics.d.ts export interface Metrics { opsDispatched: number; opsCompleted: number; |