From ba1f4665faa1841b86bdd3da7dfd75bc469110b5 Mon Sep 17 00:00:00 2001 From: zigomir Date: Wed, 25 Jan 2017 11:12:26 -0800 Subject: [PATCH] Allow cursorTo to preserve the column. --- node/v4/index.d.ts | 2 +- node/v6/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node/v4/index.d.ts b/node/v4/index.d.ts index 027387719d..99af57b082 100644 --- a/node/v4/index.d.ts +++ b/node/v4/index.d.ts @@ -987,7 +987,7 @@ declare module "readline" { export function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer, terminal?: boolean): ReadLine; export function createInterface(options: ReadLineOptions): ReadLine; - export function cursorTo(stream: NodeJS.WritableStream, x: number, y: number): void; + export function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number): void; export function moveCursor(stream: NodeJS.WritableStream, dx: number|string, dy: number|string): void; export function clearLine(stream: NodeJS.WritableStream, dir: number): void; export function clearScreenDown(stream: NodeJS.WritableStream): void; diff --git a/node/v6/index.d.ts b/node/v6/index.d.ts index ed07d1cad1..2f4d36202d 100644 --- a/node/v6/index.d.ts +++ b/node/v6/index.d.ts @@ -1507,7 +1507,7 @@ declare module "readline" { export function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer, terminal?: boolean): ReadLine; export function createInterface(options: ReadLineOptions): ReadLine; - export function cursorTo(stream: NodeJS.WritableStream, x: number, y: number): void; + export function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number): void; export function moveCursor(stream: NodeJS.WritableStream, dx: number | string, dy: number | string): void; export function clearLine(stream: NodeJS.WritableStream, dir: number): void; export function clearScreenDown(stream: NodeJS.WritableStream): void;