From 5ab1f0ce278cca8bd3f69d4aeab4ef7b16d80111 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 8 Jun 2024 00:16:11 +0530 Subject: [PATCH] chore: describe addPairToWorkflow --- server/src/workflow-management/classes/Generator.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/src/workflow-management/classes/Generator.ts b/server/src/workflow-management/classes/Generator.ts index 21a8ea76..2fc603d7 100644 --- a/server/src/workflow-management/classes/Generator.ts +++ b/server/src/workflow-management/classes/Generator.ts @@ -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);