Browse Source

chore: interface import & export add keyword type

pointhalo 2 years ago
parent
commit
ac16e490fc

+ 1 - 1
packages/semi-foundation/form/foundation.ts

@@ -8,7 +8,7 @@ import scrollIntoView, { Options as scrollIntoViewOptions } from 'scroll-into-vi
 
 import { BaseFormAdapter, FormState, CallOpts, FieldState, FieldStaff, ComponentProps, setValuesConfig, ArrayFieldStaff } from './interface';
 
-export { BaseFormAdapter };
+export type { BaseFormAdapter };
 
 export default class FormFoundation extends BaseFoundation<BaseFormAdapter> {
 

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

@@ -9,7 +9,7 @@ export {
     Preview,
 }; 
 
-export {
+export type {
     ImageProps,
     PreviewImageProps,
     PreviewProps,

+ 2 - 2
packages/semi-ui/upload/index.tsx

@@ -9,7 +9,7 @@ import FileCard from './fileCard';
 import BaseComponent from '../_base/baseComponent';
 import LocaleConsumer from '../locale/localeConsumer';
 import { IconUpload } from '@douyinfe/semi-icons';
-import {
+import type {
     FileItem,
     RenderFileItemProps,
     UploadListType,
@@ -33,7 +33,7 @@ import type { ValidateStatus } from '../_base/baseComponent';
 
 const prefixCls = cssClasses.PREFIX;
 
-export {
+export type {
     FileItem,
     RenderFileItemProps,
     UploadListType,