From 21cb29be8c7a838af19f6abe489b641b583844d4 Mon Sep 17 00:00:00 2001 From: Steven Roussey Date: Tue, 9 Apr 2024 10:39:29 -0700 Subject: [PATCH] [core] refac: don't decide how derived classes should do overrides --- packages/core/src/task/base/Task.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/core/src/task/base/Task.ts b/packages/core/src/task/base/Task.ts index e3f40f8..1b9bf88 100644 --- a/packages/core/src/task/base/Task.ts +++ b/packages/core/src/task/base/Task.ts @@ -68,26 +68,12 @@ export abstract class TaskBase { static readonly category: string = "Hidden"; static readonly sideeffects: boolean = false; - _inputs: TaskInputDefinition[] | undefined = undefined; - _outputs: TaskOutputDefinition[] | undefined = undefined; get inputs(): TaskInputDefinition[] { - if (this._inputs) { - return this._inputs; - } return ((this.constructor as typeof TaskBase).inputs as TaskInputDefinition[]) ?? []; } - set inputs(inputs: TaskInputDefinition[]) { - this._inputs = inputs; - } get outputs(): TaskOutputDefinition[] { - if (this._outputs) { - return this._outputs; - } return ((this.constructor as typeof TaskBase).outputs as TaskInputDefinition[]) ?? []; } - set outputs(outputs: TaskOutputDefinition[]) { - this._outputs = outputs; - } events = new EventEmitter(); on(name: TaskEvents, fn: (...args: any[]) => void) {