CommonAncestorResult
typeThe result of comparing two nodes that share some common ancestor
type CommonAncestorResult<A extends LexicalNode, B extends LexicalNode> = CommonAncestorResultSame<A> | CommonAncestorResultAncestor<A & ElementNode> | CommonAncestorResultDescendant<B & ElementNode> | CommonAncestorResultBranch<A, B>
Import
import { CommonAncestorResult } from '@modular/sdk/editor';