Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): use VNodeChild type from vue to avoid breakage #2237

Merged
merged 1 commit into from Nov 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 3 additions & 10 deletions src/utils/find.ts
@@ -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