Skip to content

Commit

Permalink
fixup! fs: add stream utilities to FileHandle
Browse files Browse the repository at this point in the history
Co-authored-by: James M Snell <jasnell@gmail.com>
  • Loading branch information
aduh95 and jasnell committed Sep 8, 2021
1 parent c5308bc commit ffd161b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/internal/fs/promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ class FileHandle extends EventEmitterMixin(JSTransferable) {

/**
* @typedef {import('./streams').ReadStream
* } NodeJSReadStream
* } ReadStream
* @param {{
* encoding?: string;
* autoClose?: boolean;
Expand All @@ -269,7 +269,7 @@ class FileHandle extends EventEmitterMixin(JSTransferable) {
* end?: number;
* highWaterMark?: number;
* }} [options]
* @returns {NodeJSReadStream}
* @returns {ReadStream}
*/
createReadStream(options = undefined) {
const { ReadStream } = lazyFsStreams();
Expand All @@ -278,14 +278,14 @@ class FileHandle extends EventEmitterMixin(JSTransferable) {

/**
* @typedef {import('./streams').WriteStream
* } NodeJSWriteStream
* } WriteStream
* @param {{
* encoding?: string;
* autoClose?: boolean;
* emitClose?: boolean;
* start: number;
* }} [options]
* @returns {NodeJSWriteStream}
* @returns {WriteStream}
*/
createWriteStream(options = undefined) {
const { WriteStream } = lazyFsStreams();
Expand Down

0 comments on commit ffd161b

Please sign in to comment.