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 94977aac_ee04_6312_be22_a49cc335d2ce["h.ts"] ed56e0c4_2667_3b26_6b70_35cd51b08810["create-element.ts"] 94977aac_ee04_6312_be22_a49cc335d2ce --> ed56e0c4_2667_3b26_6b70_35cd51b08810 2c55eb58_ce03_1c5e_ac99_4fc1ef41c3cd["createElement"] 94977aac_ee04_6312_be22_a49cc335d2ce --> 2c55eb58_ce03_1c5e_ac99_4fc1ef41c3cd 08d717e5_b9dd_701c_e7a2_51d83681d28a["currentInstance.ts"] 94977aac_ee04_6312_be22_a49cc335d2ce --> 08d717e5_b9dd_701c_e7a2_51d83681d28a 8a5fb776_a8f4_ce8a_8549_67af07f2e1e9["util"] 94977aac_ee04_6312_be22_a49cc335d2ce --> 8a5fb776_a8f4_ce8a_8549_67af07f2e1e9 style 94977aac_ee04_6312_be22_a49cc335d2ce 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 CompilerSFC domain, TemplateTransformer 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: CompilerSFC, subdomain: TemplateTransformer, directory: src/v3).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free