fix(core): fix node 10.x.x compatibility

This commit is contained in:
Phil Kunz
2018-06-28 23:34:41 +02:00
parent 0028c5492b
commit 3199943b59
31 changed files with 681 additions and 1096 deletions

View File

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