MCPcopy Index your code
hub / github.com/simstudioai/sim / stateWith

Function stateWith

apps/sim/lib/workspaces/fork/promote/cleared-refs.test.ts:39–50  ·  view source on GitHub ↗
(
  blockType: string,
  blockName: string,
  subBlocks: Record<string, { type?: string; value: unknown }>
)

Source from the content-addressed store, hash-verified

37const resolveBlockId = buildForkBlockIdResolver(true, EMPTY_FORK_BLOCK_MAP)
38
39const stateWith = (
40 blockType: string,
41 blockName: string,
42 subBlocks: Record<string, { type?: string; value: unknown }>
43): WorkflowState =>
44 ({
45 blocks: { 'block-1': { id: 'block-1', type: blockType, name: blockName, subBlocks } },
46 edges: [],
47 loops: {},
48 parallels: {},
49 variables: {},
50 }) as unknown as WorkflowState
51
52interface ParamOverrides {
53 items?: Array<{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected