MCPcopy
hub / github.com/Zizzamia/perfume.js / addActiveSteps

Function addActiveSteps

src/steps/steps.ts:29–39  ·  view source on GitHub ↗
(startMark: string)

Source from the content-addressed store, hash-verified

27 * This method allows to add new steps by passing the start mark
28 */
29export const addActiveSteps = (startMark: string) => {
30 const newSteps = steps.startMarkToStepsMap[startMark] ?? [];
31 // adding the new steps to the active map
32 Object.keys(newSteps).forEach(step => {
33 if (steps.active[step]) {
34 return;
35 } else {
36 steps.active[step] = true;
37 }
38 });
39};
40
41export const resetNavigationSteps = () => {
42 steps.navigationSteps = {};

Callers 1

measureStepsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected