Skip to content

Commit

Permalink
fix: update helperContainer prop type definition (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudéric Demers authored Jan 22, 2019
1 parent 79cdfaa commit fd30383
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export type ContainerGetter = (
element: React.ReactElement<any>,
) => HTMLElement | Promise<HTMLElement>;

export type HelperContainerGetter = () => HTMLElement;

export interface Dimensions {
width: number;
height: number;
Expand All @@ -69,7 +71,7 @@ export interface SortableContainerProps {
lockOffset?: Offset | [Offset, Offset];
getContainer?: ContainerGetter;
getHelperDimensions?: (sort: SortStart) => Dimensions;
helperContainer?: HTMLElement;
helperContainer?: HTMLElement | HelperContainerGetter;
}

export interface SortableElementProps {
Expand Down

0 comments on commit fd30383

Please sign in to comment.