MCPcopy Create free account
hub / github.com/Exafunction/codeium-chrome / isAllowedLanguage

Function isAllowedLanguage

src/notebook.ts:22–24  ·  view source on GitHub ↗
(language: Language)

Source from the content-addressed store, hash-verified

20type AllowedLanguages = keyof typeof NOTEBOOK_LANGUAGES;
21
22function isAllowedLanguage(language: Language) {
23 return Object.prototype.hasOwnProperty.call(NOTEBOOK_LANGUAGES, language);
24}
25
26// In Jupyter, we can have cells which are neither Markdown nor Python, so we
27// need to define both functions in the interface.

Callers 1

computeTextAndOffsetsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected