Skip to content

Commit

Permalink
feat: 🎸 add IReadableWebStreamOptions type
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Jul 27, 2024
1 parent 3872068 commit 99ebd64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/node/types/FsPromisesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export interface FsPromisesApi {
mkdtemp(prefix: string, options?: opts.IOptions): Promise<misc.TDataOut>;
open(path: misc.PathLike, flags?: misc.TFlags, mode?: misc.TMode): Promise<misc.IFileHandle>;
opendir(path: misc.PathLike, options?: opts.IOpendirOptions): Promise<misc.IDir>;
readableWebStream: (options?: opts.IReadableWebStreamOptions) => ReadableStream;
readdir(path: misc.PathLike, options?: opts.IReaddirOptions | string): Promise<misc.TDataOut[] | misc.IDirent[]>;
readFile(id: misc.TFileHandle, options?: opts.IReadFileOptions | string): Promise<misc.TDataOut>;
readlink(path: misc.PathLike, options?: opts.IOptions): Promise<misc.TDataOut>;
Expand Down
4 changes: 4 additions & 0 deletions src/node/types/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 99ebd64

Please sign in to comment.