isTTY is optional

This commit is contained in:
Julien CROUZET
2016-11-21 12:00:08 +01:00
parent b72a93a227
commit fb7fbd28b4
6 changed files with 12 additions and 12 deletions

4
node/node-0.12.d.ts vendored
View File

@@ -180,7 +180,7 @@ declare namespace NodeJS {
export interface ReadableStream extends EventEmitter {
readable: boolean;
isTTY: boolean;
isTTY?: boolean;
read(size?: number): string|Buffer;
setEncoding(encoding: string): void;
pause(): void;
@@ -194,7 +194,7 @@ declare namespace NodeJS {
export interface WritableStream extends EventEmitter {
writable: boolean;
isTTY: boolean;
isTTY?: boolean;
write(buffer: Buffer|string, cb?: Function): boolean;
write(str: string, encoding?: string, cb?: Function): boolean;
end(): void;