tapbundle/ts/tapbundle.classes.tapwrap.ts
2018-06-28 23:34:41 +02:00

25 lines
407 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();
}
}