MCPcopy Create free account
hub / github.com/simstudioai/sim / readSubBlockValue

Function readSubBlockValue

apps/sim/lib/workflows/triggers/triggers.ts:225–231  ·  view source on GitHub ↗
(subBlocks: Record<string, unknown> | undefined, key: string)

Source from the content-addressed store, hash-verified

223type SubBlockWithValue = { value?: unknown }
224
225function readSubBlockValue(subBlocks: Record<string, unknown> | undefined, key: string): unknown {
226 const raw = subBlocks?.[key]
227 if (raw && typeof raw === 'object' && !Array.isArray(raw)) {
228 return (raw as SubBlockWithValue).value
229 }
230 return undefined
231}
232
233export function getLegacyStarterMode(block: {
234 subBlocks?: Record<string, unknown>

Callers 1

getLegacyStarterModeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected