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

Function getProperties

apps/sim/executor/utils/block-reference.ts:68–73  ·  view source on GitHub ↗
(schema: unknown)

Source from the content-addressed store, hash-verified

66}
67
68function getProperties(schema: unknown): Record<string, unknown> | undefined {
69 const props = asSchemaNode(schema)?.properties
70 return typeof props === 'object' && props !== null
71 ? (props as Record<string, unknown>)
72 : undefined
73}
74
75function lookupField(schema: unknown, fieldName: string): unknown | undefined {
76 if (typeof schema !== 'object' || schema === null) return undefined

Callers 1

lookupFieldFunction · 0.85

Calls 1

asSchemaNodeFunction · 0.85

Tested by

no test coverage detected