소스 검색

chore: interface import & export add keyword type

pointhalo 2 년 전
부모
커밋
ac16e490fc
3개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      packages/semi-foundation/form/foundation.ts
  2. 1 1
      packages/semi-ui/image/index.tsx
  3. 2 2
      packages/semi-ui/upload/index.tsx

+ 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,