diff --git a/modules/react-arborist/src/components/provider.tsx b/modules/react-arborist/src/components/provider.tsx index 0326c82a..2723de37 100644 --- a/modules/react-arborist/src/components/provider.tsx +++ b/modules/react-arborist/src/components/provider.tsx @@ -84,7 +84,7 @@ export function TreeProvider({ diff --git a/modules/react-arborist/src/types/tree-props.ts b/modules/react-arborist/src/types/tree-props.ts index 440bcc40..1f033e4f 100644 --- a/modules/react-arborist/src/types/tree-props.ts +++ b/modules/react-arborist/src/types/tree-props.ts @@ -5,7 +5,7 @@ import { ElementType, MouseEventHandler } from "react"; import { ListOnScrollProps } from "react-window"; import { NodeApi } from "../interfaces/node-api"; import { OpenMap } from "../state/open-slice"; -import { useDragDropManager } from "react-dnd"; +import { useDragDropManager, DndProviderProps } from "react-dnd"; export interface TreeProps { /* Data Options */ @@ -76,5 +76,9 @@ export interface TreeProps { dndRootElement?: globalThis.Node | null; onClick?: MouseEventHandler; onContextMenu?: MouseEventHandler; + dndBackend?: Extract< + DndProviderProps, + { backend: unknown } + >["backend"]; dndManager?: ReturnType; }