UNPKG

stdio

Version:

Standard input/output manager for Node.js

10 lines (9 loc) • 288 B
export interface AskConfig { options?: string[]; maxRetries?: number; inputStream?: any; /** Index of the option to be made the default option */ defaultIndex?: number; } declare function ask(question: string, config?: AskConfig): Promise<string>; export default ask;