mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
328 B
TypeScript
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) { });
|