ThemeName
tipo Since 1.4.0
Nombre de un tema de la aplicación: la unión de los themes de meeko.config.ts cuando
meeko check generó sus tipos (.meeko/types/routes.d.ts); sin ellos, string.
ts
import type { ThemeName } from "@meekojs/meeko/framework";Source code src/shared/theme.ts:104
Declaración #
ts
type ThemeName = GeneratedTheme extends { readonly themes: infer Name extends string } ? Name : stringExample #
ts
import type { ThemeName } from "@meekojs/meeko/framework";
const icons: Record<ThemeName, string> = { light: "sol", dark: "luna" };