summaryrefslogtreecommitdiff
path: root/ext/net/lib.deno_net.d.ts
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2022-02-15 13:35:22 +0100
committerGitHub <noreply@github.com>2022-02-15 13:35:22 +0100
commitbdc8006a362b4f95107a25ca816dcdedb7f44e4a (patch)
tree928d7c08e1d16302af03404f37ce84b8d39e4a40 /ext/net/lib.deno_net.d.ts
parent7b893bd57f2f013c4a11e1e9f0ba435a3cfc96c0 (diff)
feat(runtime): web streams in fs & net APIs (#13615)
This commit adds `readable` and `writable` properties to `Deno.File` and `Deno.Conn`. This makes it very simple to use files and network sockets with fetch or the native HTTP server.
Diffstat (limited to 'ext/net/lib.deno_net.d.ts')
-rw-r--r--ext/net/lib.deno_net.d.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts
index ebed8ac87..9ac274e94 100644
--- a/ext/net/lib.deno_net.d.ts
+++ b/ext/net/lib.deno_net.d.ts
@@ -54,6 +54,9 @@ declare namespace Deno {
setNoDelay(nodelay?: boolean): void;
/** Enable/disable keep-alive functionality */
setKeepAlive(keepalive?: boolean): void;
+
+ readonly readable: ReadableStream<Uint8Array>;
+ readonly writable: WritableStream<Uint8Array>;
}
// deno-lint-ignore no-empty-interface