mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
Update react-beautiful-dnd to 3.0, fix nullables (#22938)
This commit is contained in:
12
types/react-beautiful-dnd/index.d.ts
vendored
12
types/react-beautiful-dnd/index.d.ts
vendored
@@ -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 <https://github.com/varHarrie>
|
||||
// Bradley Ayers <https://github.com/bradleyayers>
|
||||
@@ -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<DragDropContextProps> {}
|
||||
|
||||
export interface DroppableProvided {
|
||||
innerRef(element: HTMLElement | null): any;
|
||||
placeholder?: React.ReactElement<any>;
|
||||
placeholder?: React.ReactElement<any> | 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<any>;
|
||||
draggableStyle?: DraggableStyle | null;
|
||||
dragHandleProps?: DragHandleProps | null;
|
||||
placeholder?: React.ReactElement<any> | null;
|
||||
}
|
||||
|
||||
export interface DraggableStateSnapshot {
|
||||
|
||||
Reference in New Issue
Block a user