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

Function getBlockMeta

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

Source from the content-addressed store, hash-verified

103 * versioned lookup falls back to the stripped base.
104 */
105export function getBlockMeta(type: string): BlockMeta | undefined {
106 const normalized = normalizeType(type)
107 return (
108 BLOCK_META_REGISTRY[type] ??
109 BLOCK_META_REGISTRY[normalized] ??
110 BLOCK_META_REGISTRY[stripVersionSuffix(normalized)]
111 )
112}
113
114/** All block metas keyed by block type. */
115export function getAllBlockMeta(): Record<string, BlockMeta> {

Callers 2

Calls 2

stripVersionSuffixFunction · 0.90
normalizeTypeFunction · 0.85

Tested by

no test coverage detected