From ec044fa9fdbb35854ee67f471f69cc1a8b909d59 Mon Sep 17 00:00:00 2001 From: Stepan Mikhaylyuk Date: Mon, 14 Mar 2016 16:07:24 +0300 Subject: [PATCH] added docstrings added docstrings --- react-dropzone/react-dropzone.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/react-dropzone/react-dropzone.d.ts b/react-dropzone/react-dropzone.d.ts index b6bf01d1d6..7562a413eb 100644 --- a/react-dropzone/react-dropzone.d.ts +++ b/react-dropzone/react-dropzone.d.ts @@ -18,8 +18,20 @@ declare module ReactDropzone { className?: string; activeClassName?: string; rejectClassName?: string; + /** + * Clicking the brings up the browser file picker. To disable, set to true. + */ disableClick?: boolean; + /** + * To accept only a single file, set this to false. + */ multiple?: boolean; + /** + * Filters the file types that are valid. It should have a valid MIME type according to input element, for example: + * application/pdf + * image/* + * audio/aiff,audio/midi + */ accept?: string; } @@ -32,3 +44,4 @@ declare module "react-dropzone" { const Dropzone: typeof ReactDropzone.Dropzone; export = Dropzone; } +