Home / Function/ getType() — vue Function Reference

getType() — vue Function Reference

Architecture documentation for the getType() function in props.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  f5fda3f6_b160_81e4_ce76_ab6eb1b1fa39["getType()"]
  e8576a88_2e85_86ff_b2f9_bbbb6de70a51["props.ts"]
  f5fda3f6_b160_81e4_ce76_ab6eb1b1fa39 -->|defined in| e8576a88_2e85_86ff_b2f9_bbbb6de70a51
  a06153e2_673f_da2d_1fcd_fd4c7ab29577["getPropDefaultValue()"]
  a06153e2_673f_da2d_1fcd_fd4c7ab29577 -->|calls| f5fda3f6_b160_81e4_ce76_ab6eb1b1fa39
  9aa11e66_4392_8ac7_ac29_01fd54a3d105["assertType()"]
  9aa11e66_4392_8ac7_ac29_01fd54a3d105 -->|calls| f5fda3f6_b160_81e4_ce76_ab6eb1b1fa39
  81cae664_c651_d537_3426_1db285ab3929["isSameType()"]
  81cae664_c651_d537_3426_1db285ab3929 -->|calls| f5fda3f6_b160_81e4_ce76_ab6eb1b1fa39
  style f5fda3f6_b160_81e4_ce76_ab6eb1b1fa39 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/util/props.ts lines 193–196

function getType(fn) {
  const match = fn && fn.toString().match(functionTypeCheckRE)
  return match ? match[1] : ''
}

Domain

Subdomains

Frequently Asked Questions

What does getType() do?
getType() is a function in the vue codebase, defined in src/core/util/props.ts.
Where is getType() defined?
getType() is defined in src/core/util/props.ts at line 193.
What calls getType()?
getType() is called by 3 function(s): assertType, getPropDefaultValue, isSameType.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free