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

Function readSubBlockValue

apps/sim/lib/workflows/triggers/run-options.ts:59–65  ·  view source on GitHub ↗
(block: TriggerBlockLike, key: string)

Source from the content-addressed store, hash-verified

57}
58
59function readSubBlockValue(block: TriggerBlockLike, key: string): unknown {
60 const raw = (block.subBlocks as Record<string, unknown> | undefined)?.[key]
61 if (raw && typeof raw === 'object' && !Array.isArray(raw)) {
62 return (raw as { value?: unknown }).value
63 }
64 return undefined
65}
66
67function mapOutputType(type: string): string {
68 switch (type) {

Callers 3

resolveEventTriggerIdFunction · 0.70
extractEventMockPayloadFunction · 0.70
buildTriggerRunOptionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected