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

Function getBlock

apps/sim/blocks/registry.ts:20–22  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

18
19/** Get the block config for a single block type. */
20export function getBlock(type: string): BlockConfig | undefined {
21 return BLOCK_REGISTRY[type] ?? BLOCK_REGISTRY[normalizeType(type)]
22}
23
24/** All block configs. */
25export function getAllBlocks(): BlockConfig[] {

Callers 15

prepareBlockStateFunction · 0.90
store.tsFile · 0.90
buildStartBlockConfigFunction · 0.90
isSubBlockVisibleFunction · 0.90
resolveFieldLabelFunction · 0.90
resolveValueForDisplayFunction · 0.90
getToolInputParamConfigsFunction · 0.90

Calls 1

normalizeTypeFunction · 0.85

Tested by

no test coverage detected