mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
added minSize and maxSide to React-Dropzone (#10755)
* added minSize and maxSide * added comment to properties and fixed test
This commit is contained in:
committed by
Masahiro Wakame
parent
ccf79bc4f7
commit
f0fede9ce3
@@ -19,6 +19,8 @@ class Test extends React.Component<any, any> {
|
||||
style={{ borderStyle: "dashed" }}
|
||||
activeStyle={{ borderStyle: "dotted" }}
|
||||
className="regular"
|
||||
minSize={2000}
|
||||
maxSize={Infinity}
|
||||
activeClassName="active"
|
||||
rejectClassName="reject"
|
||||
disableClick={true}
|
||||
|
||||
8
react-dropzone/react-dropzone.d.ts
vendored
8
react-dropzone/react-dropzone.d.ts
vendored
@@ -22,6 +22,14 @@ declare namespace ReactDropzone {
|
||||
* Clicking the <Dropzone> brings up the browser file picker. To disable, set to true.
|
||||
*/
|
||||
disableClick?: boolean;
|
||||
/**
|
||||
* Min file size accepted
|
||||
*/
|
||||
minSize?: number;
|
||||
/**
|
||||
* Max file size accepted
|
||||
*/
|
||||
maxSize?: number;
|
||||
/**
|
||||
* To accept only a single file, set this to false.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user