style(vue-runtime-help): 完善类型
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user