Home / Function/ recordType() — vue Function Reference

recordType() — vue Function Reference

Architecture documentation for the recordType() function in compileScript.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  d0f5ebe6_ca7a_17bd_e29b_5326c7ef914b["recordType()"]
  c9346cac_54e3_f6ca_68a7_03c6e82c9609["compileScript.ts"]
  d0f5ebe6_ca7a_17bd_e29b_5326c7ef914b -->|defined in| c9346cac_54e3_f6ca_68a7_03c6e82c9609
  4dff3da5_c3f4_4303_7989_1d16ed3f091d["compileScript()"]
  4dff3da5_c3f4_4303_7989_1d16ed3f091d -->|calls| d0f5ebe6_ca7a_17bd_e29b_5326c7ef914b
  58009d44_c2df_89c8_226b_0f5828dc8e12["inferRuntimeType()"]
  d0f5ebe6_ca7a_17bd_e29b_5326c7ef914b -->|calls| 58009d44_c2df_89c8_226b_0f5828dc8e12
  style d0f5ebe6_ca7a_17bd_e29b_5326c7ef914b 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

Called By

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