Function
stateWith
(
blockType: string,
blockName: string,
subBlocks: Record<string, { type?: string; value: unknown }>
)
Source from the content-addressed store, hash-verified
| 37 | const resolveBlockId = buildForkBlockIdResolver(true, EMPTY_FORK_BLOCK_MAP) |
| 38 | |
| 39 | const 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 | |
| 52 | interface ParamOverrides { |
| 53 | items?: Array<{ |
Tested by
no test coverage detected