Enhance type hints for globally registered components (#7933)

* Enhance type hints for globally registered components

* Refactor Codemirror props and language support

* Update

Signed-off-by: Ryan Wang <i@ryanc.cc>

---------

Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
Ryan Wang
2025-11-14 14:51:55 +08:00
committed by GitHub
parent 2068b72e27
commit ede40ad698
37 changed files with 81 additions and 72 deletions

View File

@@ -4,6 +4,12 @@ import { definePlugin } from "@halo-dev/ui-shared";
import { markRaw } from "vue";
import WidgetCard from "./components/WidgetCard.vue";
declare module "vue" {
interface GlobalComponents {
WidgetCard: (typeof import("./components/WidgetCard.vue"))["default"];
}
}
export default definePlugin({
components: {
WidgetCard,