fix: adapt model enhancements for DSH 0.1.5

This commit is contained in:
2026-09-11 21:45:40 +08:00
parent b9e422ad30
commit 77304500b1
19 changed files with 1583 additions and 1525 deletions
+21
View File
@@ -0,0 +1,21 @@
export default {
createElement: () => ({}),
Fragment: () => ({}),
useState: (initial: any) => [initial, () => {}],
useEffect: () => {},
useLayoutEffect: () => {},
useMemo: (fn: any) => fn(),
useRef: (val: any) => ({ current: val }),
useSyncExternalStore: () => ({})
};
export const createElement = () => ({});
export const jsx = () => ({});
export const jsxs = () => ({});
export const jsxDEV = () => ({});
export const Fragment = () => ({});
export const useState = (initial: any) => [initial, () => {}];
export const useEffect = () => {};
export const useLayoutEffect = () => {};
export const useMemo = (fn: any) => fn();
export const useRef = (val: any) => ({ current: val });
export const useSyncExternalStore = () => ({});