diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts index 214a5f14ba..030157d636 100644 --- a/ext/net/lib.deno_net.d.ts +++ b/ext/net/lib.deno_net.d.ts @@ -24,9 +24,9 @@ declare namespace Deno { * * @category Network */ - export interface Listener extends AsyncIterable { + export interface Listener extends AsyncIterable { /** Waits for and resolves to the next connection to the `Listener`. */ - accept(): Promise; + accept(): Promise; /** Close closes the listener. Any pending accept promises will be rejected * with errors. */ close(): void; @@ -36,7 +36,7 @@ declare namespace Deno { /** Return the rid of the `Listener`. */ readonly rid: number; - [Symbol.asyncIterator](): AsyncIterableIterator; + [Symbol.asyncIterator](): AsyncIterableIterator; /** * Make the listener block the event loop from finishing. @@ -54,11 +54,7 @@ declare namespace Deno { * * @category Network */ - export interface TlsListener extends Listener, AsyncIterable { - /** Waits for a TLS client to connect and accepts the connection. */ - accept(): Promise; - [Symbol.asyncIterator](): AsyncIterableIterator; - } + export type TlsListener = Listener; /** @category Network */ export interface Conn extends Reader, Writer, Closer {