Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions src/utils/find.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
ComponentInternalInstance,
VNode,
VNodeChild,
VNodeArrayChildren,
VNodeNormalizedChildren,
VNodeTypes
Expand Down Expand Up @@ -92,16 +93,8 @@ export function matches(
* to only keep VNode and VNodeArrayChildren values
* @param value
*/
function nodesAsObject<Node>(
value:
| string
| number
| boolean
| VNodeArrayChildren
| VNode
| null
| undefined
| void
function nodesAsObject(
value: VNodeChild | VNodeArrayChildren
): value is VNodeArrayChildren | VNode {
return !!value && typeof value === 'object'
}
Expand Down