h.ts — vue Source File
Architecture documentation for h.ts, a typescript file in the vue codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR a3090893_4f42_c7c7_044e_3d18b8c33433["h.ts"] 4b23edff_adcb_6cfb_ca7d_b6d38b4a1921["create-element.ts"] a3090893_4f42_c7c7_044e_3d18b8c33433 --> 4b23edff_adcb_6cfb_ca7d_b6d38b4a1921 02c4c5f0_14bc_07b8_fddc_e3511462f997["createElement"] a3090893_4f42_c7c7_044e_3d18b8c33433 --> 02c4c5f0_14bc_07b8_fddc_e3511462f997 9f3b1774_ebd5_0845_1a85_868e0c1fd480["currentInstance.ts"] a3090893_4f42_c7c7_044e_3d18b8c33433 --> 9f3b1774_ebd5_0845_1a85_868e0c1fd480 6d8f8976_7066_720b_0d45_45fe42921eaf["util"] a3090893_4f42_c7c7_044e_3d18b8c33433 --> 6d8f8976_7066_720b_0d45_45fe42921eaf style a3090893_4f42_c7c7_044e_3d18b8c33433 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { createElement } from '../core/vdom/create-element'
import { currentInstance } from './currentInstance'
import { warn } from 'core/util'
/**
* @internal this function needs manual public type declaration because it relies
* on previously manually authored types from Vue 2
*/
export function h(type: any, props?: any, children?: any) {
if (!currentInstance) {
__DEV__ &&
warn(
`globally imported h() can only be invoked when there is an active ` +
`component instance, e.g. synchronously in a component's render or setup function.`
)
}
return createElement(currentInstance!, type, props, children, 2, true)
}
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does h.ts do?
h.ts is a source file in the vue codebase, written in typescript. It belongs to the VueCore domain, GlobalAPI subdomain.
What functions are defined in h.ts?
h.ts defines 1 function(s): h.
What does h.ts depend on?
h.ts imports 4 module(s): create-element.ts, createElement, currentInstance.ts, util.
Where is h.ts in the architecture?
h.ts is located at src/v3/h.ts (domain: VueCore, subdomain: GlobalAPI, directory: src/v3).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free