add implementation

This commit is contained in:
2017-01-16 14:54:08 +01:00
parent 48efa9186c
commit df2fd32f9f
9 changed files with 119 additions and 1 deletions

13
ts/index.ts Normal file
View File

@ -0,0 +1,13 @@
import 'typings-global'
export let delayFor = async <T>(timeInMillisecond: number, passOn?: T) => {
await new Promise((resolve, reject) => {
setTimeout(
() => {
resolve()
},
timeInMillisecond
)
})
return passOn
}