getTypeIndex() — vue Function Reference
Architecture documentation for the getTypeIndex() function in props.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 4f9bc8a7_c807_b563_6f3f_f5d992f87a77["getTypeIndex()"] e8576a88_2e85_86ff_b2f9_bbbb6de70a51["props.ts"] 4f9bc8a7_c807_b563_6f3f_f5d992f87a77 -->|defined in| e8576a88_2e85_86ff_b2f9_bbbb6de70a51 b943403b_6390_a1db_4eec_d4fea1238518["validateProp()"] b943403b_6390_a1db_4eec_d4fea1238518 -->|calls| 4f9bc8a7_c807_b563_6f3f_f5d992f87a77 81cae664_c651_d537_3426_1db285ab3929["isSameType()"] 4f9bc8a7_c807_b563_6f3f_f5d992f87a77 -->|calls| 81cae664_c651_d537_3426_1db285ab3929 style 4f9bc8a7_c807_b563_6f3f_f5d992f87a77 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