Merge pull request #8546 from stepancar/patch-16

Patch 16
This commit is contained in:
Masahiro Wakame
2016-03-16 00:42:46 +09:00
+31 -21
View File
@@ -5,33 +5,43 @@
///<reference path='../react/react.d.ts' />
declare module "react-dropzone" {
import * as React from 'react';
namespace reactDropzone {
declare module ReactDropzone {
import React = __React;
interface DropzoneProps {
onDrop?: Function;
onDropAccepted?: Function;
onDropRejected?: Function;
onDragEnter?: Function;
onDragLeave?: Function;
style?: Object;
activeStyle?: Object;
className?: string;
activeClassName?: string;
rejectClassName?: string;
disableClick?: boolean;
multiple?: boolean;
accept?: string;
onDrop?: Function;
onDropAccepted?: Function;
onDropRejected?: Function;
onDragEnter?: Function;
onDragLeave?: Function;
style?: Object;
activeStyle?: Object;
className?: string;
activeClassName?: string;
rejectClassName?: string;
/**
* Clicking the <Dropzone> 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;
}
export class Dropzone extends React.Component<DropzoneProps, {}> {
}
}
}
export = reactDropzone.Dropzone;
declare module "react-dropzone" {
const Dropzone: typeof ReactDropzone.Dropzone;
export = Dropzone;
}