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

Function isValidBlockType

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

Source from the content-addressed store, hash-verified

93
94/** Whether the given string is a registered block type. Accepts hyphens as a dash-form alias. */
95export function isValidBlockType(type: string): type is string {
96 return type in BLOCK_REGISTRY || normalizeType(type) in BLOCK_REGISTRY
97}
98
99/**
100 * Get the presentation/catalog meta for a block type, resolving through the

Callers 1

blocks.test.tsFile · 0.90

Calls 1

normalizeTypeFunction · 0.85

Tested by

no test coverage detected