DefinitelyTyped/read/read-tests.ts
2015-10-28 17:16:40 +13:00

19 lines
328 B
TypeScript

/// <reference path="read.d.ts" />
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) { });