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

Add missing dndType prop.
This commit is contained in:
Jovica Zoric
2017-09-26 11:08:32 -07:00
committed by Mohamed Hegazy
parent 8520eb774a
commit f4c23d9070
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: []}]}