DefinitelyTyped/types/read/read-tests.ts
2017-03-24 14:27:52 -07:00

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) { });