summaryrefslogtreecommitdiff
path: root/ext/net/lib.deno_net.d.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2022-02-24 13:16:56 +0900
committerGitHub <noreply@github.com>2022-02-24 13:16:56 +0900
commit3e8180c793f1dd7437a497ffdb0cf7e919a9a5c3 (patch)
tree23f834a6ac3eb18da9bf2b18d93f288bdacbf06d /ext/net/lib.deno_net.d.ts
parentf8b73ab97e90f5e4313b0e725fe14d1ee0df01b4 (diff)
feat(ext/net): support cert, key options in listenTls (#13740)
Diffstat (limited to 'ext/net/lib.deno_net.d.ts')
-rw-r--r--ext/net/lib.deno_net.d.ts18
1 files changed, 14 insertions, 4 deletions
diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts
index 048037d02..038452055 100644
--- a/ext/net/lib.deno_net.d.ts
+++ b/ext/net/lib.deno_net.d.ts
@@ -93,11 +93,21 @@ declare namespace Deno {
): Listener;
export interface ListenTlsOptions extends ListenOptions {
+ /** Server private key in PEM format */
+ key?: string;
+ /** Cert chain in PEM format */
+ cert?: string;
/** Path to a file containing a PEM formatted CA certificate. Requires
- * `--allow-read`. */
- certFile: string;
- /** Server public key file. Requires `--allow-read`.*/
- keyFile: string;
+ * `--allow-read`.
+ *
+ * @deprecated This option is deprecated and will be removed in Deno 2.0.
+ */
+ certFile?: string;
+ /** Server private key file. Requires `--allow-read`.
+ *
+ * @deprecated This option is deprecated and will be removed in Deno 2.0.
+ */
+ keyFile?: string;
transport?: "tcp";
}