refactor: improve type guard for domUtils.isNode by tbouffard · Pull Request #1000 · maxGraph/maxGraph
- Change isNode to return a type predicate (value is HTMLElement) - Remove unnecessary type assertions in code using isNode - Simplify type narrowing in SvgCanvas2D, XmlCanvas2D, TooltipHandler, and TextShape
tbouffard
marked this pull request as ready for review
tbouffard
deleted the
refactor/improve_type_domUtils.isNode
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters