geostyler
Version:
Framework for styling geodata
22 lines (21 loc) • 618 B
TypeScript
import { default as React } from 'react';
import { UploadProps } from 'antd';
export interface CustomRequest {
onProgress: (event: {
percent: number;
}) => void;
onError: (event: Error, body?: any) => void;
onSuccess: (body: any, file?: File) => void;
data: any;
filename: string;
file: File;
withCredentials: boolean;
action: string;
headers: any;
}
export type UploadButtonProps = Omit<UploadProps<any>, 'name' | 'action'>;
/**
* Button to upload / import geodata file.
*/
export declare const UploadButton: React.FC<UploadButtonProps>;
export default UploadButton;