chore: clean up

This commit is contained in:
Ou 2024-10-13 03:41:05 +08:00
parent c49044e974
commit 1f08297e19
2 changed files with 3 additions and 7 deletions

View File

@ -1,6 +0,0 @@
import { colors as c } from "unocss/preset-mini"
import { typeSafeObjectKeys } from "./type.util"
export const colors = typeSafeObjectKeys(c)
export type Color = Exclude<typeof colors[number], "current" | "inherit" | "transparent" | "black" | "white">

View File

@ -1,7 +1,9 @@
import type { Color } from "./colors"
import type { colors } from "unocss/preset-mini"
import type { sectionIds } from "./data"
import type { originSources } from "./sources"
export type Color = Exclude<keyof typeof colors, "current" | "inherit" | "transparent" | "black" | "white">
type ConstSources = typeof originSources
type MainSourceID = keyof(ConstSources)