mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
Merge pull request #13010 from ivasilov/patch-2
Export Dropzone as default
This commit is contained in:
Vendored
+4
-10
@@ -3,14 +3,9 @@
|
||||
// Definitions by: Mathieu Larouche Dube <https://github.com/matdube>, Ivo Jesus <https://github.com/LynxEyes>, Luís Rodrigues <https://github.com/goblindegook>
|
||||
// Definitions: https://github.com/Vooban/DefinitelyTyped
|
||||
|
||||
///<reference types="react" />
|
||||
/// <reference types="react"/>
|
||||
|
||||
import * as React from "react";
|
||||
|
||||
declare var Dropzone: typeof ReactDropzone.Dropzone;
|
||||
export = Dropzone;
|
||||
|
||||
declare namespace ReactDropzone {
|
||||
declare module "react-dropzone" {
|
||||
interface DropzoneProps {
|
||||
// Drop behavior
|
||||
onDrop?: Function,
|
||||
@@ -40,7 +35,6 @@ declare namespace ReactDropzone {
|
||||
minSize?: number
|
||||
}
|
||||
|
||||
export class Dropzone extends React.Component<DropzoneProps, {}> {
|
||||
}
|
||||
|
||||
let Dropzone: React.ClassicComponentClass<DropzoneProps>;
|
||||
export default Dropzone;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
///<reference types="react" />
|
||||
///<reference types="react-dropzone" />
|
||||
import * as React from 'react';
|
||||
import Dropzone = require('react-dropzone');
|
||||
import Dropzone from 'react-dropzone';
|
||||
|
||||
class Test extends React.Component<any, any> {
|
||||
constructor(props: any) {
|
||||
|
||||
Reference in New Issue
Block a user