mirror of
https://github.com/actions/typescript-action.git
synced 2025-04-08 00:09:45 +00:00
12 lines
360 B
JavaScript
12 lines
360 B
JavaScript
"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;
|