(value: unknown)
| 6 | import type { ThemeName } from "./theme.types"; |
| 7 | |
| 8 | export function isThemeName(value: unknown): value is ThemeName { |
| 9 | return value === "light" || value === "dark"; |
| 10 | } |
| 11 | |
| 12 | export function readStoredTheme(): ThemeName | null { |
| 13 | const stored = localStore.get(THEME_STORAGE_KEY); |
no outgoing calls
no test coverage detected