loose-ts-check
Version:
Run TS type-check and ignore certain errors in some files
16 lines (15 loc) • 486 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getProgramInput = void 0;
const readline_1 = require("readline");
const getProgramInput = () => new Promise((resolve) => {
const programInput = [];
const rl = (0, readline_1.createInterface)(process.stdin);
rl.on('line', (line) => {
programInput.push(line);
});
rl.once('close', () => {
resolve(programInput);
});
});
exports.getProgramInput = getProgramInput;