diff --git a/src/utils.ts b/src/utils.ts index 33afafd..1b15d98 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,5 +1,11 @@ -function isNodeSimple(node) { +import { FiberNode, FiberNodeisHTMLLike } from './mocked-types'; + +function isHtmlLike(node: FiberNode): node is FiberNodeisHTMLLike { return (typeof node.type === "string") || node.type === null; } -export { isNodeSimple }; \ No newline at end of file +function isNotHtmlLike(node: FiberNode): node is Exclude { + return (typeof node.type === "string") || node.type === null; +} + +export { isHtmlLike, isNotHtmlLike }; \ No newline at end of file