recordType() — vue Function Reference
Architecture documentation for the recordType() function in compileScript.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 6c908c3e_1d62_cbed_b2a6_227a1d085a60["recordType()"] 16b5f9ed_1e09_eff8_5797_7cb90fc86d37["compileScript()"] 16b5f9ed_1e09_eff8_5797_7cb90fc86d37 -->|calls| 6c908c3e_1d62_cbed_b2a6_227a1d085a60 9315090e_2c5c_e529_e01a_651ebe7c77f0["inferRuntimeType()"] 6c908c3e_1d62_cbed_b2a6_227a1d085a60 -->|calls| 9315090e_2c5c_e529_e01a_651ebe7c77f0 style 6c908c3e_1d62_cbed_b2a6_227a1d085a60 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/compiler-sfc/src/compileScript.ts lines 1429–1440
function recordType(node: Node, declaredTypes: Record<string, string[]>) {
if (node.type === 'TSInterfaceDeclaration') {
declaredTypes[node.id.name] = [`Object`]
} else if (node.type === 'TSTypeAliasDeclaration') {
declaredTypes[node.id.name] = inferRuntimeType(
node.typeAnnotation,
declaredTypes
)
} else if (node.type === 'ExportNamedDeclaration' && node.declaration) {
recordType(node.declaration, declaredTypes)
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does recordType() do?
recordType() is a function in the vue codebase.
What does recordType() call?
recordType() calls 1 function(s): inferRuntimeType.
What calls recordType()?
recordType() is called by 1 function(s): compileScript.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free