tapbundle/ts/tapbundle.classes.tapwrap.ts
2017-07-06 00:06:18 +02:00

25 lines
404 B
TypeScript

import * as plugins from './tapbundle.plugins'
export interface ITapWrapFunction {
(): Promise<any>
}
export class TapWrap {
wrapFunction: ITapWrapFunction
/**
* the constructor
*/
constructor (wrapFunctionArg: ITapWrapFunction) {
// nothing here
this.wrapFunction = wrapFunctionArg
}
/**
* run the wrapFunction
*/
async run () {
await this.wrapFunction()
}
}