mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
38 lines
900 B
TypeScript
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;
|
|
}
|
|
|