mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 13:59:11 +08:00
22 lines
698 B
TypeScript
22 lines
698 B
TypeScript
import Dragger from './Dragger';
|
|
import type { UploadProps } from './Upload';
|
|
import InternalUpload, { LIST_IGNORE } from './Upload';
|
|
|
|
export { DraggerProps } from './Dragger';
|
|
export { RcFile, UploadChangeParam, UploadFile, UploadListProps, UploadProps } from './interface';
|
|
|
|
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;
|