mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
react sortable tree missing prop
This commit is contained in:
Vendored
+7
@@ -70,6 +70,12 @@ export interface OnDragPreviousAndNextLocation extends PreviousAndNextLocation {
|
||||
nextParent: TreeItem | null;
|
||||
}
|
||||
|
||||
export interface ShouldCopyData {
|
||||
node: TreeItem,
|
||||
prevPath: NumberArrayOrStringArray,
|
||||
prevTreeIndex: number
|
||||
}
|
||||
|
||||
export interface OnMovePreviousAndNextLocation extends PreviousAndNextLocation {
|
||||
nextParentNode: TreeItem | null;
|
||||
}
|
||||
@@ -186,6 +192,7 @@ export interface ReactSortableTreeProps {
|
||||
dndType?: string;
|
||||
placeholderRenderer?: PlaceholderRenderer;
|
||||
theme?: ThemeProps;
|
||||
shouldCopyOnOutsideDrop?: boolean | ((data: ShouldCopyData) => boolean);
|
||||
}
|
||||
|
||||
declare const SortableTree: React.ComponentClass<ReactSortableTreeProps>;
|
||||
|
||||
Reference in New Issue
Block a user