fix(react-sortable-tree): Add missing prop

Add missing dndType prop.
This commit is contained in:
Jovica Zoric
2017-09-26 13:29:50 +02:00
parent 371ad9acf3
commit 57c70f83b8
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -1,6 +1,7 @@
// Type definitions for react-sortable-tree 0.1
// Project: https://fritz-c.github.io/react-sortable-tree
// Definitions by: Wouter Hardeman <https://github.com/wouterhardeman>
// Jovica Zoric <https://github.com/jzoric>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -111,6 +112,7 @@ export interface ReactSortableTreeProps {
scaffoldBlockPxWidth?: number;
isVirtualized?: boolean;
nodeContentRenderer?: NodeRenderer;
dndType?: string;
}
declare const SortableTree: React.ComponentClass<ReactSortableTreeProps>;
@@ -54,6 +54,7 @@ class Test extends React.Component {
scaffoldBlockPxWidth={44}
isVirtualized={true}
nodeContentRenderer={nodeRenderer}
dndType="testNodeType"
/>
<SortableTreeWithoutDndContext
treeData={[{title: "Title", subtitle: "Subtitle", children: []}]}