Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: kanweiwei <kanweiwei@nutstore.net>
- Loading branch information
Showing
2 changed files
with
15 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
import Upload from './Upload'; | ||
import Dragger from './Dragger'; | ||
import InternalUpload, { LIST_IGNORE, UploadProps } from './Upload'; | ||
|
||
export { UploadProps, UploadListProps, UploadChangeParam, RcFile } from './interface'; | ||
export { DraggerProps } from './Dragger'; | ||
|
||
type InternalUploadType = typeof InternalUpload; | ||
interface UploadInterface<T = any> extends InternalUploadType { | ||
<U extends T>( | ||
props: React.PropsWithChildren<UploadProps<U>> & React.RefAttributes<any>, | ||
): React.ReactElement; | ||
Dragger: typeof Dragger; | ||
LIST_IGNORE: string; | ||
} | ||
|
||
const Upload = InternalUpload as UploadInterface; | ||
Upload.Dragger = Dragger; | ||
Upload.LIST_IGNORE = LIST_IGNORE; | ||
|
||
export default Upload; |