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

Function normalizeType

apps/sim/blocks/registry.ts:15–17  ·  view source on GitHub ↗

* Normalize an external block type to its registry key form: dashes become * underscores (some external sources use either form).

(type: string)

Source from the content-addressed store, hash-verified

13 * underscores (some external sources use either form).
14 */
15function normalizeType(type: string): string {
16 return type.replace(/-/g, '_')
17}
18
19/** Get the block config for a single block type. */
20export function getBlock(type: string): BlockConfig | undefined {

Callers 5

getBlockFunction · 0.85
resolveLatestFunction · 0.85
isValidBlockTypeFunction · 0.85
getBlockMetaFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected