From 6f02fa1abf6bd42975b75f1777dcde748ee662af Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Fri, 24 Nov 2023 23:24:41 +0100 Subject: feat(streams): ReadableStream.read min option (#20849) --- ext/web/lib.deno_web.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ext/web/lib.deno_web.d.ts') diff --git a/ext/web/lib.deno_web.d.ts b/ext/web/lib.deno_web.d.ts index aa832cc01..9b9a55c23 100644 --- a/ext/web/lib.deno_web.d.ts +++ b/ext/web/lib.deno_web.d.ts @@ -623,12 +623,18 @@ declare type ReadableStreamBYOBReadResult = | ReadableStreamBYOBReadDoneResult | ReadableStreamBYOBReadValueResult; +/** @category Streams API */ +declare interface ReadableStreamBYOBReaderReadOptions { + min?: number; +} + /** @category Streams API */ declare interface ReadableStreamBYOBReader { readonly closed: Promise; cancel(reason?: any): Promise; read( view: V, + options?: ReadableStreamBYOBReaderReadOptions, ): Promise>; releaseLock(): void; } -- cgit v1.2.3