getTypeIndex() — vue Function Reference
Architecture documentation for the getTypeIndex() function in props.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 625bda12_3309_28dd_7cf5_fa6ffe15bea0["getTypeIndex()"] d99d7982_2691_1c11_3bae_459f2d25122d["validateProp()"] d99d7982_2691_1c11_3bae_459f2d25122d -->|calls| 625bda12_3309_28dd_7cf5_fa6ffe15bea0 010b6021_0de0_9f5b_5955_a148209a8fff["isSameType()"] 625bda12_3309_28dd_7cf5_fa6ffe15bea0 -->|calls| 010b6021_0de0_9f5b_5955_a148209a8fff style 625bda12_3309_28dd_7cf5_fa6ffe15bea0 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
Calls
Called By
Source
Frequently Asked Questions
What does getTypeIndex() do?
getTypeIndex() is a function in the vue codebase.
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