get-first-component-child.ts — vue Source File
Architecture documentation for get-first-component-child.ts, a typescript file in the vue codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR cee7daab_a792_66d9_098d_15ff5961e47f["get-first-component-child.ts"] 5164a61d_92b2_9c7f_8acb_b18093afdb59["vnode.ts"] cee7daab_a792_66d9_098d_15ff5961e47f --> 5164a61d_92b2_9c7f_8acb_b18093afdb59 5ad3a184_20dd_3738_991b_41d3120e21c9["VNode"] cee7daab_a792_66d9_098d_15ff5961e47f --> 5ad3a184_20dd_3738_991b_41d3120e21c9 80e29c1b_c807_b450_d82b_2036fd4401e3["is-async-placeholder.ts"] cee7daab_a792_66d9_098d_15ff5961e47f --> 80e29c1b_c807_b450_d82b_2036fd4401e3 9e2d427b_d4a2_bb4c_370b_b1726419786d["isAsyncPlaceholder"] cee7daab_a792_66d9_098d_15ff5961e47f --> 9e2d427b_d4a2_bb4c_370b_b1726419786d 09aa5370_2caa_6b33_3f44_6ac5211bd11b["util"] cee7daab_a792_66d9_098d_15ff5961e47f --> 09aa5370_2caa_6b33_3f44_6ac5211bd11b style cee7daab_a792_66d9_098d_15ff5961e47f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { isDef, isArray } from 'shared/util'
import VNode from '../vnode'
import { isAsyncPlaceholder } from './is-async-placeholder'
export function getFirstComponentChild(
children?: Array<VNode>
): VNode | undefined {
if (isArray(children)) {
for (let i = 0; i < children.length; i++) {
const c = children[i]
if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
return c
}
}
}
}
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does get-first-component-child.ts do?
get-first-component-child.ts is a source file in the vue codebase, written in typescript. It belongs to the VueCore domain, Instance subdomain.
What functions are defined in get-first-component-child.ts?
get-first-component-child.ts defines 1 function(s): getFirstComponentChild.
What does get-first-component-child.ts depend on?
get-first-component-child.ts imports 5 module(s): VNode, is-async-placeholder.ts, isAsyncPlaceholder, util, vnode.ts.
Where is get-first-component-child.ts in the architecture?
get-first-component-child.ts is located at src/core/vdom/helpers/get-first-component-child.ts (domain: VueCore, subdomain: Instance, directory: src/core/vdom/helpers).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free