recordType() — vue Function Reference
Architecture documentation for the recordType() function in compileScript.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 23bffca1_373a_79e7_730a_c8cb14cff3aa["recordType()"] af57cd20_c4ce_0877_c02c_52056ca04d4a["compileScript()"] af57cd20_c4ce_0877_c02c_52056ca04d4a -->|calls| 23bffca1_373a_79e7_730a_c8cb14cff3aa 8ac9093c_a35a_8ea9_859b_a447347824e3["inferRuntimeType()"] 23bffca1_373a_79e7_730a_c8cb14cff3aa -->|calls| 8ac9093c_a35a_8ea9_859b_a447347824e3 style 23bffca1_373a_79e7_730a_c8cb14cff3aa 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