Skip to content

Commit

Permalink
Merge pull request #327 from brionmario/fix-dnd
Browse files Browse the repository at this point in the history
fix(react): fix the TS issue in `DroppableContainer`
  • Loading branch information
brionmario authored Jan 17, 2025
2 parents cad91f1 + 8889a8d commit 60fb5dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/components/dnd/DroppableContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ type DroppableNode = any;

/**
* Props interface of {@link DroppableContainer}
* TODO: Extending `any` as a temp workaround to overcome the TS issue.
* Tracker: https://github.com/wso2/oxygen-ui/issues/326.
*/
export type DroppableContainerProps<C extends ElementType = ElementType> = BoxProps<C> & {
/**
Expand All @@ -59,7 +61,7 @@ export type DroppableContainerProps<C extends ElementType = ElementType> = BoxPr
* @param newOrder - The new order of nodes.
*/
onOrderChange?: (newOrder: DroppableNode[]) => void;
};
} & any;

/**
* Interface for the props of a draggable item.
Expand Down

0 comments on commit 60fb5dd

Please sign in to comment.