Skip to content

Commit

Permalink
Deprecate instead of removing in ListItemNode
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Apr 3, 2024
1 parent 29acc1f commit f46b602
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/lexical-list/src/LexicalListItemNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,16 @@ export class ListItemNode extends ElementNode {
return this;
}

/** @deprecated @internal */
canInsertAfter(node: LexicalNode): boolean {
return $isListItemNode(node);
}

/** @deprecated @internal */
canReplaceWith(replacement: LexicalNode): boolean {
return $isListItemNode(replacement);
}

canMergeWith(node: LexicalNode): boolean {
return $isParagraphNode(node) || $isListItemNode(node);
}
Expand Down

0 comments on commit f46b602

Please sign in to comment.