浏览代码

chore: fix type export

point.halo 10 月之前
父节点
当前提交
dd74228786
共有 2 个文件被更改,包括 20 次插入6 次删除
  1. 19 5
      packages/semi-foundation/resizable/foundation.ts
  2. 1 1
      packages/semi-ui/jsonViewer/index.tsx

+ 19 - 5
packages/semi-foundation/resizable/foundation.ts

@@ -1,15 +1,29 @@
-export {
-    ResizableHandlerAdapter, 
+import { 
     ResizableHandlerFoundation, 
     ResizableFoundation, 
-    ResizableAdapter 
 } from './single';
 
-export {
+import { 
+    ResizeGroupFoundation,
+    ResizeItemFoundation,
+    ResizeHandlerFoundation
+} from './group';
+
+import type { ResizableHandlerAdapter, ResizableAdapter } from './single';
+import type { ResizeGroupAdapter, ResizeItemAdapter, ResizeHandlerAdapter } from './group';
+
+export type {
+    ResizableHandlerAdapter, 
+    ResizableAdapter,
     ResizeGroupAdapter,
     ResizeItemAdapter,
     ResizeHandlerAdapter,
+};
+
+export { 
+    ResizableHandlerFoundation, 
+    ResizableFoundation, 
     ResizeGroupFoundation,
     ResizeItemFoundation,
     ResizeHandlerFoundation
-} from './group';
+}; 

+ 1 - 1
packages/semi-ui/jsonViewer/index.tsx

@@ -22,7 +22,7 @@ import {
 import BaseComponent, { BaseProps } from '../_base/baseComponent';
 const prefixCls = cssClasses.PREFIX;
 
-export { JsonViewerOptions };
+export type { JsonViewerOptions };
 export interface JsonViewerProps extends BaseProps {
     value: string;
     width: number;