MCPcopy Create free account
hub / github.com/coder/coder / isConcreteThemeName

Function isConcreteThemeName

site/src/theme/index.ts:50–54  ·  view source on GitHub ↗
(
	value: unknown,
)

Source from the content-addressed store, hash-verified

48const concreteThemeSet = new Set<string>(CONCRETE_THEMES);
49
50export const isConcreteThemeName = (
51 value: unknown,
52): value is ConcreteThemeName => {
53 return typeof value === "string" && concreteThemeSet.has(value);
54};
55
56type LegacyAutoSync = {
57 mode: "sync";

Callers 5

getThemeFromMessageFunction · 0.90
AgentEmbedPageFunction · 0.90
resolveThemeNameFunction · 0.85
colorblind.test.tsFile · 0.85
coerceConcreteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected