getTypeIndex() — vue Function Reference
Architecture documentation for the getTypeIndex() function in props.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 2e0b3ae4_f148_494b_efa7_cd4ea382d92b["getTypeIndex()"] ebb0510e_1beb_0f1e_d9b5_9f9e319cefcc["props.ts"] 2e0b3ae4_f148_494b_efa7_cd4ea382d92b -->|defined in| ebb0510e_1beb_0f1e_d9b5_9f9e319cefcc 7425417e_e38e_e5e8_6678_47ee9b0e04c2["validateProp()"] 7425417e_e38e_e5e8_6678_47ee9b0e04c2 -->|calls| 2e0b3ae4_f148_494b_efa7_cd4ea382d92b 396bea13_2f5c_a5d9_4c51_d6b5d9402c45["isSameType()"] 2e0b3ae4_f148_494b_efa7_cd4ea382d92b -->|calls| 396bea13_2f5c_a5d9_4c51_d6b5d9402c45 style 2e0b3ae4_f148_494b_efa7_cd4ea382d92b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/util/props.ts lines 202–212
function getTypeIndex(type, expectedTypes): number {
if (!isArray(expectedTypes)) {
return isSameType(expectedTypes, type) ? 0 : -1
}
for (let i = 0, len = expectedTypes.length; i < len; i++) {
if (isSameType(expectedTypes[i], type)) {
return i
}
}
return -1
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does getTypeIndex() do?
getTypeIndex() is a function in the vue codebase, defined in src/core/util/props.ts.
Where is getTypeIndex() defined?
getTypeIndex() is defined in src/core/util/props.ts at line 202.
What does getTypeIndex() call?
getTypeIndex() calls 1 function(s): isSameType.
What calls getTypeIndex()?
getTypeIndex() is called by 1 function(s): validateProp.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free