Skip to content

Commit baa7af7

Browse files
authored
feat(types): expose the prop types
This will expose the component type definitions. ```ts import {ReactSortableTreeProps} from "@nosferatu500/react-sortable-tree/react-sortable-tree" // or /** * @typedef {import("@nosferatu500/react-sortable-tree/react-sortable-tree").ReactSortableTreeProps} ReactSortableTreeProps */ ```
1 parent 8bb4358 commit baa7af7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react-sortable-tree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ type OnDragStateChangedParams = {
787787
draggedNode: any
788788
}
789789

790-
type ReactSortableTreeProps = {
790+
export type ReactSortableTreeProps = {
791791
dragDropManager?: {
792792
getMonitor: () => unknown
793793
}

0 commit comments

Comments
 (0)