import * as plugins from './tapbundle.plugins.js'; import { TapTools } from './tapbundle.classes.taptools.js'; export interface IPostTaskFunction { (tapTools?: TapTools): Promise; } export class PostTask { public description: string; public postTaskFunction: IPostTaskFunction; constructor(descriptionArg: string, postTaskFunctionArg: IPostTaskFunction) { this.description = descriptionArg; this.postTaskFunction = postTaskFunctionArg; } public async run() { console.log(`::__POSTTASK: ${this.description}`); await this.postTaskFunction(new TapTools(null)); } }