diff options
Diffstat (limited to 'ext/net/lib.deno_net.d.ts')
-rw-r--r-- | ext/net/lib.deno_net.d.ts | 18 |
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"; } |