Skip to content

Commit

Permalink
fix(node): add missing compose to stream classes
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 2, 2023
1 parent 43ceb09 commit 5687712
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/runtime/node/stream/readable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,11 @@ export class Readable extends EventEmitter implements stream.Readable {
}

async *[Symbol.asyncIterator](): AsyncIterableIterator<any> {}

compose<T extends NodeJS.ReadableStream>(
stream: T | ((source: any) => void) | Iterable<T> | AsyncIterable<T>,
options?: { signal: AbortSignal } | undefined,
): T {
throw new Error("[h3] Method not implemented.");
}
}
7 changes: 7 additions & 0 deletions src/runtime/node/stream/writable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,11 @@ export class Writable extends EventEmitter implements stream.Writable {
this.removeAllListeners();
return this;
}

compose<T extends NodeJS.ReadableStream>(
stream: T | ((source: any) => void) | Iterable<T> | AsyncIterable<T>,
options?: { signal: AbortSignal } | undefined,
): T {
throw new Error("[h3] Method not implemented.");
}
}

0 comments on commit 5687712

Please sign in to comment.