( state: ManagedAutonomyFlowState | undefined, )
| 135 | } |
| 136 | |
| 137 | function cloneManagedState( |
| 138 | state: ManagedAutonomyFlowState | undefined, |
| 139 | ): ManagedAutonomyFlowState | undefined { |
| 140 | if (!state) { |
| 141 | return undefined |
| 142 | } |
| 143 | return { |
| 144 | currentStepIndex: state.currentStepIndex, |
| 145 | steps: state.steps.map(cloneFlowStep), |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | function cloneWaitState( |
| 150 | wait: AutonomyFlowWaitState | undefined, |
no outgoing calls
no test coverage detected