@@ -45,7 +45,7 @@ const DropCollect = (connect: DND.DropTargetConnector, monitor: DND.DropTargetMo
4545/**
4646 * A component which can have items of a specific matching type dropped onto it
4747 */
48- @DND . DropTarget < IDroppeable > ( ( { accepts } ) => accepts , DropTarget , DropCollect )
48+ @DND . DropTarget < IDroppeable & any > ( ( { accepts } ) => accepts , DropTarget , DropCollect )
4949export class Droppeable < P extends IDroppeable > extends React . Component < P > {
5050 public render ( ) {
5151 const { isOver, connectDropTarget, canDrop, didDrop } = this . props
@@ -84,7 +84,7 @@ const DragCollect = (connect: DND.DragSourceConnector, monitor: DND.DragSourceMo
8484 * @param {React.Component } A component which is dragged onto another
8585 * @returns {React.Component<P> } A react class component
8686 */
87- @DND . DragSource < IDraggeable > ( props => props . target , DragSource , DragCollect )
87+ @DND . DragSource < IDraggeable & any > ( props => props . target , DragSource , DragCollect )
8888export class Draggeable < P extends IDraggeable > extends React . Component < P > {
8989 public render ( ) {
9090 const { isDragging, connectDragSource } = this . props
@@ -109,8 +109,8 @@ interface IDragDrop {
109109/**
110110 * A render prop which takes a given component and makes it a drop target as well as draggeable
111111 */
112- @DND . DropTarget < IDragDrop > ( props => props . accepts , DropTarget , DropCollect )
113- @DND . DragSource < IDragDrop > ( props => props . dragTarget , DragSource , DragCollect )
112+ @DND . DropTarget < IDragDrop & any > ( props => props . accepts , DropTarget , DropCollect )
113+ @DND . DragSource < IDragDrop & any > ( props => props . dragTarget , DragSource , DragCollect )
114114export class DragAndDrop < P extends IDragDrop > extends React . Component < P > {
115115 public render ( ) {
116116 const { connectDragSource, connectDropTarget } = this . props
0 commit comments