diff --git a/types/react-beautiful-dnd/index.d.ts b/types/react-beautiful-dnd/index.d.ts index 7bca09f9c3..40f1377042 100644 --- a/types/react-beautiful-dnd/index.d.ts +++ b/types/react-beautiful-dnd/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-beautiful-dnd 2.3 +// Type definitions for react-beautiful-dnd 3.0 // Project: https://github.com/atlassian/react-beautiful-dnd // Definitions by: varHarrie // Bradley Ayers @@ -34,7 +34,7 @@ export interface DropResult { draggableId: DraggableId; type: TypeId; source: DraggableLocation; - destination?: DraggableLocation; + destination?: DraggableLocation | null; } export interface DragDropContextProps { @@ -50,7 +50,7 @@ export class DragDropContext extends React.Component {} export interface DroppableProvided { innerRef(element: HTMLElement | null): any; - placeholder?: React.ReactElement; + placeholder?: React.ReactElement | null; } export interface DroppableStateSnapshot { @@ -86,9 +86,9 @@ export interface DragHandleProps { export interface DraggableProvided { innerRef(element?: HTMLElement | null): any; - draggableStyle?: DraggableStyle; - dragHandleProps?: DragHandleProps; - placeholder?: React.ReactElement; + draggableStyle?: DraggableStyle | null; + dragHandleProps?: DragHandleProps | null; + placeholder?: React.ReactElement | null; } export interface DraggableStateSnapshot {