From 1f08297e19ce2291f73e66992ba8f17fb6074591 Mon Sep 17 00:00:00 2001 From: Ou Date: Sun, 13 Oct 2024 03:41:05 +0800 Subject: [PATCH] chore: clean up --- shared/colors.ts | 6 ------ shared/types.ts | 4 +++- 2 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 shared/colors.ts diff --git a/shared/colors.ts b/shared/colors.ts deleted file mode 100644 index 3542851..0000000 --- a/shared/colors.ts +++ /dev/null @@ -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 diff --git a/shared/types.ts b/shared/types.ts index c5394da..296e9ab 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -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 + type ConstSources = typeof originSources type MainSourceID = keyof(ConstSources)