functional
This commit is contained in:
@@ -14,8 +14,6 @@ const rl = readline.createInterface({
|
|||||||
output: process.stdout
|
output: process.stdout
|
||||||
});
|
});
|
||||||
|
|
||||||
const Prompt = (string: string): Promise<string> => new Promise(resolve => rl.question('What do you think of Node.js? ', resolve));
|
|
||||||
|
|
||||||
function exitNicely() {
|
function exitNicely() {
|
||||||
client.destroy();
|
client.destroy();
|
||||||
rl.close();
|
rl.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user