ThemeChoice
tipo Desde 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";Código fuente src/shared/theme.ts:118
Declaración #
ts
type ThemeChoice = GeneratedTheme extends { readonly choices: infer Choice extends string } ? Choice : stringEjemplo #
ts
import type { ThemeChoice } from "@meekojs/meeko/framework";
const options: ThemeChoice[] = ["system", "light", "dark"];