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
+2 -2
View File
@@ -99,7 +99,7 @@ declare namespace NodeJS {
export interface ReadableStream extends EventEmitter {
readable: boolean;
isTTY: boolean;
isTTY?: boolean;
read(size?: number): any;
setEncoding(encoding: string): void;
pause(): void;
@@ -113,7 +113,7 @@ declare namespace NodeJS {
export interface WritableStream extends EventEmitter {
writable: boolean;
isTTY: boolean;
isTTY?: boolean;
write(buffer: Buffer, cb?: Function): boolean;
write(str: string, cb?: Function): boolean;
write(str: string, encoding?: string, cb?: Function): boolean;
+2 -2
View File
@@ -99,7 +99,7 @@ declare namespace NodeJS {
export interface ReadableStream extends EventEmitter {
readable: boolean;
isTTY: boolean;
isTTY?: boolean;
read(size?: number): any;
setEncoding(encoding: string): void;
pause(): void;
@@ -113,7 +113,7 @@ declare namespace NodeJS {
export interface WritableStream extends EventEmitter {
writable: boolean;
isTTY: boolean;
isTTY?: boolean;
write(buffer: Buffer, cb?: Function): boolean;
write(str: string, cb?: Function): boolean;
write(str: string, encoding?: string, cb?: Function): boolean;
+2 -2
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;
+2 -2
View File
@@ -89,7 +89,7 @@ interface EventEmitter {
interface WritableStream extends EventEmitter {
writable: boolean;
isTTY: boolean;
isTTY?: boolean;
write(str: string, encoding?: string, fd?: string): boolean;
write(buffer: Buffer): boolean;
end(): void;
@@ -101,7 +101,7 @@ interface WritableStream extends EventEmitter {
interface ReadableStream extends EventEmitter {
readable: boolean;
isTTY: boolean;
isTTY?: boolean;
setEncoding(encoding: string): void;
pause(): void;
resume(): void;
+2 -2
View File
@@ -232,7 +232,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;
@@ -246,7 +246,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;
+2 -2
View File
@@ -259,7 +259,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(): ReadableStream;
@@ -273,7 +273,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;