mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
isTTY is optional
This commit is contained in:
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user