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

Function isValidCodeLanguage

apps/sim/lib/execution/languages.ts:13–15  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

11 * Type guard to check if a string is a valid CodeLanguage
12 */
13export function isValidCodeLanguage(value: string): value is CodeLanguage {
14 return Object.values(CodeLanguage).includes(value as CodeLanguage)
15}
16
17/**
18 * Get language display name

Callers 1

route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected