mirror of
https://github.com/actions/typescript-action.git
synced 2025-12-17 23:54:46 +00:00
update with tests
This commit is contained in:
11
lib/wait.js
Normal file
11
lib/wait.js
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function wait(milliseconds) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (typeof (milliseconds) !== 'number') {
|
||||
throw new Error('milleseconds not a number');
|
||||
}
|
||||
setTimeout(() => resolve("done!"), milliseconds);
|
||||
});
|
||||
}
|
||||
exports.wait = wait;
|
||||
Reference in New Issue
Block a user