plot-plan-designer
Version:
Design Editor Tools with React.js + ant.design + fabric.js
23 lines (22 loc) • 717 B
TypeScript
export default FileUpload;
declare class FileUpload extends React.Component<any, any, any> {
static propTypes: {
onChange: PropTypes.Requireable<(...args: any[]) => any>;
limit: PropTypes.Requireable<number>;
accept: PropTypes.Requireable<string>;
value: PropTypes.Requireable<any>;
bindError: PropTypes.Requireable<(...args: any[]) => any>;
};
static defaultProps: {
limit: number;
};
constructor(props: any);
processErr: (error: any) => boolean;
state: {
fileList: any[];
};
UNSAFE_componentWillReceiveProps(nextProps: any): void;
render(): JSX.Element;
}
import React from 'react';
import PropTypes from 'prop-types';