mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
293 B
TypeScript
18 lines
293 B
TypeScript
|
|
import read = require('read');
|
|
|
|
var opts: read.Options;
|
|
opts = {
|
|
prompt: 'please enter...',
|
|
silent: true,
|
|
replace: '*',
|
|
timeout: 1500,
|
|
default: 'nothing',
|
|
edit: false,
|
|
terminal: true,
|
|
input: {x: 'thing'},
|
|
output: {y: 'thang'}
|
|
};
|
|
|
|
read(opts, function (error, result, isDefault) { });
|