@ably/cli
Version:
Ably CLI for Pub/Sub, Chat and Spaces
10 lines (9 loc) • 448 B
TypeScript
import * as readline from "node:readline";
/**
* Helper function to safely run inquirer prompts in interactive mode
* while preserving readline state and terminal settings.
*
* This prevents issues with arrow keys showing escape sequences (^[[A)
* after inquirer prompts in interactive mode.
*/
export declare function runInquirerWithReadlineRestore<T>(promptFn: () => Promise<T>, interactiveReadline: readline.Interface | null): Promise<T>;