utils - export doesElementContainRootFiberNode

This commit is contained in:
2019-08-10 13:01:07 +05:30
parent e7e1415039
commit 5a33b3272e
+2
View File
@@ -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
}; };