mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-03 23:42:50 +00:00
node: writableFinished has to be in WriteStream too (#36734)
* node: writableFinished is boolean and have to be in WriteStream too * node: add test for process.stdout as Writable
This commit is contained in:
parent
893d9e0111
commit
2105aaf1fe
1
types/node/globals.d.ts
vendored
1
types/node/globals.d.ts
vendored
@ -729,6 +729,7 @@ declare namespace NodeJS {
|
||||
}
|
||||
|
||||
interface WriteStream extends Socket {
|
||||
readonly writableFinished: boolean;
|
||||
readonly writableHighWaterMark: number;
|
||||
readonly writableLength: number;
|
||||
columns?: number;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { Readable } from 'stream';
|
||||
import { Readable, Writable } from 'stream';
|
||||
|
||||
{
|
||||
const x: NodeModule = {} as any;
|
||||
@ -28,3 +28,12 @@ import { Readable } from 'stream';
|
||||
objectMode: true,
|
||||
});
|
||||
}
|
||||
|
||||
{
|
||||
const stdin: Readable = process.stdin;
|
||||
let writableFinished: boolean;
|
||||
const stdout: Writable = process.stdout;
|
||||
writableFinished = process.stdout.writableFinished;
|
||||
const stderr: Writable = process.stderr;
|
||||
writableFinished = process.stderr.writableFinished;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user