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