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

Function paramsToSubBlocks

apps/sim/executor/utils/block-data.ts:24–34  ·  view source on GitHub ↗
(
  params: Record<string, unknown> | undefined
)

Source from the content-addressed store, hash-verified

22}
23
24function paramsToSubBlocks(
25 params: Record<string, unknown> | undefined
26): Record<string, SubBlockWithValue> {
27 if (!params) return {}
28
29 const subBlocks: Record<string, SubBlockWithValue> = {}
30 for (const [key, value] of Object.entries(params)) {
31 subBlocks[key] = { value }
32 }
33 return subBlocks
34}
35
36function getRegistrySchema(block: SerializedBlock): OutputSchema | undefined {
37 const blockType = block.metadata?.id

Callers 1

getRegistrySchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected