ThemeChoice
tipo Since 1.4.0
Lo que el usuario puede elegir: un ThemeName o "system" si el modo sistema está
activo.
ts
import type { ThemeChoice } from "@meekojs/meeko/framework";Source code src/shared/theme.ts:118
Declaración #
ts
type ThemeChoice = GeneratedTheme extends { readonly choices: infer Choice extends string } ? Choice : stringExample #
ts
import type { ThemeChoice } from "@meekojs/meeko/framework";
const options: ThemeChoice[] = ["system", "light", "dark"];