mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
fixed import for ReactDropzone
Now its available to import in es6 style like import * as Dropzone from 'react-dropzone';
This commit is contained in:
Vendored
+19
-22
@@ -5,33 +5,30 @@
|
||||
|
||||
///<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;
|
||||
disableClick?: boolean;
|
||||
multiple?: boolean;
|
||||
accept?: string;
|
||||
}
|
||||
|
||||
export class Dropzone extends React.Component<DropzoneProps, {}> {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export = reactDropzone.Dropzone;
|
||||
}
|
||||
|
||||
declare module "react-dropzone" {
|
||||
const Dropzone: typeof ReactDropzone.Dropzone;
|
||||
export = Dropzone;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user