getDemoFlowById function infrastructure exported

Last updated: 2026-03-05T10:53:28.858Z

Metrics

LOC: 6 Complexity: 2 Params: 2

Signature

getDemoFlowById( flowId: string, ): : Promise<FlowScript | null>

Summary

Retrieve a single flow by ID. Returns null if not found.

Source Code

export async function getDemoFlowById(
  flowId: string,
): Promise<FlowScript | null> {
  const flows = await getDemoFlows();
  return flows.find((f) => f.id === flowId) ?? null;
}

Dependencies (Outgoing)

graph LR getDemoFlowById["getDemoFlowById"] getDemoFlows["getDemoFlows"] getDemoFlowById -->|calls| getDemoFlows style getDemoFlowById fill:#dbeafe,stroke:#2563eb,stroke-width:2px click getDemoFlowById "48ce0eb3216ec3dd.html" click getDemoFlows "7a890fea8b78bfa5.html"
TargetType
getDemoFlows calls

Impact (Incoming)

graph LR getDemoFlowById["getDemoFlowById"] makeFlow["makeFlow"] makeFlow -->|uses| getDemoFlowById style getDemoFlowById fill:#dbeafe,stroke:#2563eb,stroke-width:2px click getDemoFlowById "48ce0eb3216ec3dd.html" click makeFlow "dbc7481d1e84d982.html"
SourceType
makeFlow uses