mirror of
https://github.com/actions/typescript-action.git
synced 2025-12-14 14:11:37 +00:00
Fix example tests (#32)
This commit is contained in:
committed by
Bryan MacFarlane
parent
c125c0f784
commit
01408a6ef7
@@ -1,7 +1,7 @@
|
||||
export function wait(milliseconds) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (typeof(milliseconds) !== 'number') {
|
||||
throw new Error('milleseconds not a number');
|
||||
export function wait(milliseconds: number) {
|
||||
return new Promise((resolve) => {
|
||||
if (isNaN(milliseconds)) {
|
||||
throw new Error('milleseconds not a number');
|
||||
}
|
||||
|
||||
setTimeout(() => resolve("done!"), milliseconds)
|
||||
|
||||
Reference in New Issue
Block a user