diff --git a/lib/node.js b/lib/node.js index 17083f3bbdc..0fb945ef761 100644 --- a/lib/node.js +++ b/lib/node.js @@ -1632,6 +1632,12 @@ declare class stream$Writable extends stream$Stream { encoding: string, callback: (error: ?Error, data?: Buffer | string) => void ): boolean; + cursorTo( + stream: Buffer, + x: number, + y?: number + ): void; + clearLine(stream: Buffer, dir?: -1 | 0 | 1): void } //According to the NodeJS docs: @@ -1688,13 +1694,23 @@ declare class tty$ReadStream extends net$Socket { constructor(fd: number, options?: Object): void; isRaw : boolean; setRawMode(mode : boolean) : void; - isTTY : true + isTTY : true; + cursorTo( + x: number, + y?: number + ): void; + clearLine(dir?: -1 | 0 | 1): void } declare class tty$WriteStream extends net$Socket { constructor(fd: number) : void; columns : number; rows : number; - isTTY : true + isTTY : true; + cursorTo( + x: number, + y?: number + ): void; + clearLine(dir?: -1 | 0 | 1): void } declare module "tty" {