MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isBuiltInTheme

Function isBuiltInTheme

apps/kimi-code/src/tui/theme/index.ts:27–29  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

25export type ThemeName = BuiltInTheme | (string & {});
26
27export function isBuiltInTheme(value: string): value is BuiltInTheme {
28 return value === 'dark' || value === 'light' || value === 'auto';
29}
30
31export function isThemeName(_value: string): _value is ThemeName {
32 return true; // any string is a valid theme name (custom themes)

Callers 3

handleThemeCommandFunction · 0.90
applyThemeChoiceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected