bailType() — vue Function Reference
Architecture documentation for the bailType() function in reactivity-test.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD debb0055_8863_f38b_d932_335bdd42bc38["bailType()"] d1c85536_d8e7_03bd_2b91_8a1f0c0d94a2["reactivity-test.ts"] debb0055_8863_f38b_d932_335bdd42bc38 -->|defined in| d1c85536_d8e7_03bd_2b91_8a1f0c0d94a2 style debb0055_8863_f38b_d932_335bdd42bc38 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
types/test/v3/reactivity-test.ts lines 81–100
function bailType(arg: HTMLElement | Ref<HTMLElement>) {
// ref coercing
const coerced = ref(arg)
expectType<Ref<HTMLElement>>(coerced)
// isRef as type guard
if (isRef(arg)) {
expectType<Ref<HTMLElement>>(arg)
}
// ref unwrapping
expectType<HTMLElement>(unref(arg))
// ref inner type should be unwrapped
// eslint-disable-next-line no-restricted-globals
const nestedRef = ref({ foo: ref(document.createElement('DIV')) })
expectType<Ref<{ foo: HTMLElement }>>(nestedRef)
expectType<{ foo: HTMLElement }>(nestedRef.value)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does bailType() do?
bailType() is a function in the vue codebase, defined in types/test/v3/reactivity-test.ts.
Where is bailType() defined?
bailType() is defined in types/test/v3/reactivity-test.ts at line 81.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free