MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / isTheme

Function isTheme

app/components/ThemeProvider.tsx:107–109  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

105}
106
107export function isTheme(value: unknown): value is Theme {
108 return typeof value === "string" && ["light", "dark"].includes(value);
109}

Callers 2

getThemeSessionFunction · 0.90
actionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected