diff --git a/src/utils/find.ts b/src/utils/find.ts index 72fbf8fd6..54052ef3c 100644 --- a/src/utils/find.ts +++ b/src/utils/find.ts @@ -1,6 +1,7 @@ import { ComponentInternalInstance, VNode, + VNodeChild, VNodeArrayChildren, VNodeNormalizedChildren, VNodeTypes @@ -92,16 +93,8 @@ export function matches( * to only keep VNode and VNodeArrayChildren values * @param value */ -function nodesAsObject( - value: - | string - | number - | boolean - | VNodeArrayChildren - | VNode - | null - | undefined - | void +function nodesAsObject( + value: VNodeChild | VNodeArrayChildren ): value is VNodeArrayChildren | VNode { return !!value && typeof value === 'object' }