mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
Refactor prop types to omit redundant null
for null | HTMLElement
types (#998)
* refactor: omit redundant `null` prop type for HTMLElements * yarn build:lib * test: assert updated element prop types
This commit is contained in:
parent
d31e529ca9
commit
6de73f86fb
13 changed files with 40 additions and 35 deletions
|
@ -22,7 +22,7 @@
|
|||
/**
|
||||
* Finds the nearest parent tree node
|
||||
* @param {HTMLElement} node
|
||||
* @returns {null | HTMLElement}
|
||||
* @returns {HTMLElement}
|
||||
*/
|
||||
function findParentTreeNode(node) {
|
||||
if (node.classList.contains("bx--tree-parent-node")) return node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue