mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
isTTY is optional
This commit is contained in:
4
node/node-0.12.d.ts
vendored
4
node/node-0.12.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user