mirror of
https://github.com/halo-dev/halo.git
synced 2025-12-20 16:44:38 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user