Skip to content

Commit b10dce3

Browse files
committed
fix(tre): accurate nodeIndex field description matching current impl
1 parent 91f0937 commit b10dce3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/transient-render-engine/src/tree/tree-types.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,8 @@ export interface TNodeShape<T extends TNodeType> {
250250
*/
251251
readonly parent: TDocument | TBlock | TPhrasing | null;
252252
/**
253-
* The position of this element relatively to its parents, before hoisting,
254-
* after collapsing.
255-
*
256-
* @remarks
257-
* "Before hoisting" implies that this index corresponds to the node position
258-
* in the DOM, after removal of empty elements as per whitespace collapsing
259-
* algorithm.
253+
* The position of this element relatively to its parents, after hoisting and
254+
* collapsing.
260255
*/
261256
readonly nodeIndex: number;
262257
/**

0 commit comments

Comments
 (0)