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

Function getStringProp

apps/sim/lib/media/falai.ts:48–54  ·  view source on GitHub ↗
(
  record: Record<string, unknown> | undefined,
  key: string
)

Source from the content-addressed store, hash-verified

46}
47
48export function getStringProp(
49 record: Record<string, unknown> | undefined,
50 key: string
51): string | undefined {
52 const value = record?.[key]
53 return typeof value === 'string' ? value : undefined
54}
55
56export function getNumberProp(
57 record: Record<string, unknown> | undefined,

Callers 3

falErrorMessageFunction · 0.85
runFalQueueFunction · 0.85
extractFalMediaUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected