tapbundle/ts/tapbundle.classes.tapwrap.ts

25 lines
404 B
TypeScript
Raw Normal View History

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