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

@@ -12,7 +12,6 @@ import {
} from "@halo-dev/components";
import { useQuery } from "@tanstack/vue-query";
import { computed, ref } from "vue";
import PluginDetailModal from "../PluginDetailModal.vue";
const props = withDefaults(
defineProps<{ extensionDefinition: ExtensionDefinition }>(),

View File

@@ -5,6 +5,12 @@ import { markRaw } from "vue";
import type { RouteRecordRaw } from "vue-router";
import PluginDetailModal from "./components/PluginDetailModal.vue";
declare module "vue" {
interface GlobalComponents {
PluginDetailModal: (typeof import("./components/PluginDetailModal.vue"))["default"];
}
}
export default definePlugin({
components: {
PluginDetailModal,