import { ActionGroupBundle } from "../core"; import { BaseFile } from "../files"; export class BaseBuilder { actionGroupBundle: ActionGroupBundle = new ActionGroupBundle(); constructor() { } fill(payload: Partial = {}) { for (const [key, value] of Object.entries(payload)) { if (this.hasOwnProperty(key) ) { (this as any)[key] = value; } } this.migrate(); return this; } migrate() { return this; } // this should return files build(): BaseFile[] { return []; } }