From ac802ef4b025bcb1bb9d5fed2eb9482481a9260e Mon Sep 17 00:00:00 2001 From: Bradley Ayers Date: Wed, 24 Jan 2018 06:49:46 +1100 Subject: [PATCH] Update react-beautiful-dnd to 3.0, fix nullables (#22938) --- types/react-beautiful-dnd/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 {