mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
utils - export doesElementContainRootFiberNode
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
|||||||
FiberNodeDOMContainer
|
FiberNodeDOMContainer
|
||||||
} from "./mocked-types";
|
} from "./mocked-types";
|
||||||
|
|
||||||
|
// Support null in all of these
|
||||||
function isNodeHtmlLike(node: FiberNode): node is FiberNodeisHTMLLike {
|
function isNodeHtmlLike(node: FiberNode): node is FiberNodeisHTMLLike {
|
||||||
return typeof node.type === "string" || node.type === null;
|
return typeof node.type === "string" || node.type === null;
|
||||||
}
|
}
|
||||||
@@ -106,5 +107,6 @@ export {
|
|||||||
isConstructorHtmlLike,
|
isConstructorHtmlLike,
|
||||||
isConstructorComponentClass,
|
isConstructorComponentClass,
|
||||||
isConstructorFunctionComponent,
|
isConstructorFunctionComponent,
|
||||||
|
doesElementContainRootFiberNode,
|
||||||
getRootFiberNodeFromDOM
|
getRootFiberNodeFromDOM
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user