Skip to content

Commit 5703647

Browse files
committed
chore(core): add todos for parentId
1 parent 5d3f87f commit 5703647

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/core/src/types/node.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ export interface Node<Data = ElementData, CustomEvents extends Record<string, Cu
7171
extent?: CoordinateExtent | CoordinateExtentRange | 'parent'
7272
/** expands parent area to fit child node */
7373
expandParent?: boolean
74-
/** define node as a child node by setting a parent node id */
74+
/**
75+
* todo: rename to `parentId` in next major release
76+
* define node as a child node by setting a parent node id
77+
*/
7578
parentNode?: string
7679
/**
7780
* Fixed width of node, applied as style
@@ -168,7 +171,10 @@ export interface NodeProps<Data = ElementData, CustomEvents = object, Type exten
168171
* parent node id
169172
*/
170173
parent?: string
171-
/** parent node id */
174+
/**
175+
* todo: rename to `parentId` in next major release
176+
* parent node id
177+
*/
172178
parentNodeId?: string
173179
/** is node currently dragging */
174180
dragging: boolean

0 commit comments

Comments
 (0)