tapbundle/ts/tapbundle.classes.tapwrap.ts

25 lines
404 B
TypeScript
Raw Normal View History

2017-07-05 17:57:28 +02:00
import * as plugins from './tapbundle.plugins'
export interface ITapWrapFunction {
(): Promise<any>
}
export class TapWrap {
2017-07-06 00:06:18 +02:00
wrapFunction: ITapWrapFunction
/**
* the constructor
*/
constructor (wrapFunctionArg: ITapWrapFunction) {
2017-07-05 17:57:28 +02:00
// nothing here
2017-07-06 00:06:18 +02:00
this.wrapFunction = wrapFunctionArg
}
/**
* run the wrapFunction
*/
async run () {
await this.wrapFunction()
2017-07-05 17:57:28 +02:00
}
}