DefinitelyTyped/react-dropzone/react-dropzone.d.ts
Mathieu Larouche Dube 1fc9f8415e Added react-dropzone
2015-10-29 10:27:36 -04:00

38 lines
900 B
TypeScript

// Type definitions for react-dropzone
// Project: https://github.com/paramaggarwal/react-dropzone
// Definitions by: Mathieu Larouche Dube <https://github.com/matdube>
// Definitions: https://github.com/Vooban/DefinitelyTyped
///<reference path='../react/react.d.ts' />
declare module "react-dropzone" {
import * as React from 'react';
namespace reactDropzone {
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;
}
export class Dropzone extends React.Component<DropzoneProps, {}> {
}
}
export = reactDropzone.Dropzone;
}