mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(cli/js/net): Make generator return types iterable (#4661)
This commit is contained in:
parent
263dc8f5fe
commit
95eb6d780c
2 changed files with 6 additions and 6 deletions
4
cli/js/lib.deno.ns.d.ts
vendored
4
cli/js/lib.deno.ns.d.ts
vendored
|
@ -1877,7 +1877,7 @@ declare namespace Deno {
|
|||
close(): void;
|
||||
/** Return the address of the `UDPConn`. */
|
||||
readonly addr: Addr;
|
||||
[Symbol.asyncIterator](): AsyncIterator<[Uint8Array, Addr]>;
|
||||
[Symbol.asyncIterator](): AsyncIterableIterator<[Uint8Array, Addr]>;
|
||||
}
|
||||
|
||||
/** A generic network listener for stream-oriented protocols. */
|
||||
|
@ -1890,7 +1890,7 @@ declare namespace Deno {
|
|||
/** Return the address of the `Listener`. */
|
||||
readonly addr: Addr;
|
||||
|
||||
[Symbol.asyncIterator](): AsyncIterator<Conn>;
|
||||
[Symbol.asyncIterator](): AsyncIterableIterator<Conn>;
|
||||
}
|
||||
|
||||
export interface Conn extends Reader, Writer, Closer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue