chore: describe addPairToWorkflow

This commit is contained in:
karishmas6
2024-06-08 00:16:11 +05:30
parent 665c5a2cf1
commit 5ab1f0ce27

View File

@@ -325,7 +325,12 @@ export class WorkflowGenerator {
}
};
/**
* Adds a new pair to the currently generated workflow.
* @param index The index on which the pair should be added.
* @param pair The pair to be added.
* @returns void
*/
public addPairToWorkflow = (index: number, pair: WhereWhatPair) => {
if (index === this.workflowRecord.workflow.length) {
this.workflowRecord.workflow.unshift(pair);