From 99ebd6491e4886dc9947d5b3c867241b7158357a Mon Sep 17 00:00:00 2001 From: streamich Date: Sat, 27 Jul 2024 11:18:53 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20add=20IReadableWebStream?= =?UTF-8?q?Options=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/node/types/FsPromisesApi.ts | 1 + src/node/types/options.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/node/types/FsPromisesApi.ts b/src/node/types/FsPromisesApi.ts index 22ea29df3..61cbc667c 100644 --- a/src/node/types/FsPromisesApi.ts +++ b/src/node/types/FsPromisesApi.ts @@ -20,6 +20,7 @@ export interface FsPromisesApi { mkdtemp(prefix: string, options?: opts.IOptions): Promise; open(path: misc.PathLike, flags?: misc.TFlags, mode?: misc.TMode): Promise; opendir(path: misc.PathLike, options?: opts.IOpendirOptions): Promise; + readableWebStream: (options?: opts.IReadableWebStreamOptions) => ReadableStream; readdir(path: misc.PathLike, options?: opts.IReaddirOptions | string): Promise; readFile(id: misc.TFileHandle, options?: opts.IReadFileOptions | string): Promise; readlink(path: misc.PathLike, options?: opts.IOptions): Promise; diff --git a/src/node/types/options.ts b/src/node/types/options.ts index 7faae9f7e..f1d99f9ed 100644 --- a/src/node/types/options.ts +++ b/src/node/types/options.ts @@ -32,6 +32,10 @@ export interface IFStatOptions { export interface IAppendFileOptions extends IFileOptions {} +export interface IReadableWebStreamOptions { + type?: 'bytes' | undefined; +} + export interface IReaddirOptions extends IOptions { recursive?: boolean; withFileTypes?: boolean;