mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
fix(react-sortable-tree): Add missing prop
Add missing dndType prop.
This commit is contained in:
Vendored
+2
@@ -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: []}]}
|
||||
|
||||
Reference in New Issue
Block a user