recordType() — vue Function Reference
Architecture documentation for the recordType() function in compileScript.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD b5bc0258_b738_f4bd_b2f8_86ad13c9824d["recordType()"] b9f12a63_b611_1b00_0717_3ff21d7ce156["compileScript.ts"] b5bc0258_b738_f4bd_b2f8_86ad13c9824d -->|defined in| b9f12a63_b611_1b00_0717_3ff21d7ce156 6195696d_b4e9_b5d7_3dd5_1966a03d855f["compileScript()"] 6195696d_b4e9_b5d7_3dd5_1966a03d855f -->|calls| b5bc0258_b738_f4bd_b2f8_86ad13c9824d f5615e57_27e2_c277_36a9_ca880b809a96["inferRuntimeType()"] b5bc0258_b738_f4bd_b2f8_86ad13c9824d -->|calls| f5615e57_27e2_c277_36a9_ca880b809a96 style b5bc0258_b738_f4bd_b2f8_86ad13c9824d 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
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does recordType() do?
recordType() is a function in the vue codebase, defined in packages/compiler-sfc/src/compileScript.ts.
Where is recordType() defined?
recordType() is defined in packages/compiler-sfc/src/compileScript.ts at line 1429.
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