1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 5x 5x 1x 2x 5x | import Overland from './Overland'; abstract class Task { public static set app(app: string) { this._app = app; } public static set command(str: string) { this._command = str; } public static get command() { return `${ this._app } ${ this._command }`; } private static _command: string; private static _app: string; public overland: Overland; public abstract action(...args: any[]): Promise<any>; constructor(overland: Overland) { this.overland = overland; } } export { Task as default }; |