@types/rc-tree
Advanced tools
Comparing version 1.4.5 to 1.4.6
@@ -61,2 +61,20 @@ // Type definitions for rc-tree 1.4 | ||
export interface OnDragStartData { | ||
event: Event; | ||
node: TreeNode; | ||
} | ||
export interface OnDragEnterData { | ||
event: Event; | ||
node: TreeNode; | ||
expandedKeys: string[]; | ||
} | ||
export interface OnDropData { | ||
event: Event; | ||
node: TreeNode; | ||
dragNode: TreeNode; | ||
dragNodesKeys: string[]; | ||
} | ||
export interface TreeProps extends Props<Tree> { | ||
@@ -153,4 +171,16 @@ /** | ||
draggable?: boolean; | ||
/** | ||
* event on drag start | ||
*/ | ||
onDragStart?: (props: OnDragStartData) => void; | ||
/** | ||
* event on drag enter | ||
*/ | ||
onDragEnter?: (props: OnDragEnterData) => void; | ||
/** | ||
* event on drag drop | ||
*/ | ||
onDrop?: (props: OnDropData) => void; | ||
} | ||
export default class Tree extends Component<TreeProps> { } |
{ | ||
"name": "@types/rc-tree", | ||
"version": "1.4.5", | ||
"version": "1.4.6", | ||
"description": "TypeScript definitions for rc-tree", | ||
@@ -9,3 +9,4 @@ "license": "MIT", | ||
"name": "John Reilly", | ||
"url": "https://github.com/johnnyreilly" | ||
"url": "https://github.com/johnnyreilly", | ||
"githubUsername": "johnnyreilly" | ||
} | ||
@@ -22,4 +23,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "7e602a6db312288de9c4033fb8ac9aee528042bf843caa99461132323be98c18", | ||
"typesPublisherContentHash": "37022923fcfa970479976a5deeaee4830a285ea87be20c6fe61e00d0e63b1221", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 21 Aug 2017 21:59:27 GMT | ||
* Last updated: Wed, 24 Jan 2018 20:07:13 GMT | ||
* Dependencies: react | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6753
173