mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
[node] export Stream as class, not interface
require('stream').Stream in Node.js is a constructor.
This commit is contained in:
Vendored
+1
-1
@@ -1675,7 +1675,7 @@ declare module "crypto" {
|
||||
declare module "stream" {
|
||||
import * as events from "events";
|
||||
|
||||
export interface Stream extends events.EventEmitter {
|
||||
export class Stream extends events.EventEmitter {
|
||||
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user