style(vue-runtime-help): 完善类型

This commit is contained in:
roymondchen 2025-07-17 17:22:11 +08:00
parent 305ea4619f
commit 6cb08cf458

View File

@ -4,7 +4,7 @@ import type TMagicApp from '@tmagic/core';
import type { ChangeEvent, Id, MNode } from '@tmagic/core'; import type { ChangeEvent, Id, MNode } from '@tmagic/core';
import { isPage, isPageFragment, replaceChildNode } from '@tmagic/core'; import { isPage, isPageFragment, replaceChildNode } from '@tmagic/core';
export const useDsl = (app = inject<TMagicApp>('app'), pageFragmentConstainerId: Id) => { export const useDsl = (app = inject<TMagicApp>('app'), pageFragmentConstainerId?: Id) => {
if (!app) { if (!app) {
throw new Error('useDsl must be used after MagicApp is created'); throw new Error('useDsl must be used after MagicApp is created');
} }