import { Decorator } from "../base"; import { Task } from "../Task"; /** An AlwaysFail decorator will fail no matter the wrapped task fails or succeeds. */ export class AlwaysFail extends Decorator { public childSuccess(runningTask: Task): void { this.childFail(runningTask); } }