reactivity-test.ts — vue Source File
Architecture documentation for reactivity-test.ts, a typescript file in the vue codebase. 7 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b4eae887_aae6_b3d1_59a1_c048a1e8c568["reactivity-test.ts"] 451106ad_39e7_1c30_4a13_bb292ee7299e["./index"] b4eae887_aae6_b3d1_59a1_c048a1e8c568 --> 451106ad_39e7_1c30_4a13_bb292ee7299e 3bc1859e_5f62_1ad0_1a20_c1ba96d0683f["utils.ts"] b4eae887_aae6_b3d1_59a1_c048a1e8c568 --> 3bc1859e_5f62_1ad0_1a20_c1ba96d0683f 155060fc_7986_df7b_c8e9_1f949c3b644d["IsUnion"] b4eae887_aae6_b3d1_59a1_c048a1e8c568 --> 155060fc_7986_df7b_c8e9_1f949c3b644d 46bce54a_6904_14ab_386b_534c5c7fffd4["describe"] b4eae887_aae6_b3d1_59a1_c048a1e8c568 --> 46bce54a_6904_14ab_386b_534c5c7fffd4 0d1d7fa8_6c23_89bd_a93c_da22952bfee8["describe"] b4eae887_aae6_b3d1_59a1_c048a1e8c568 --> 0d1d7fa8_6c23_89bd_a93c_da22952bfee8 620797b4_7e39_eef5_c1bc_e0f39399ca9d["expectType"] b4eae887_aae6_b3d1_59a1_c048a1e8c568 --> 620797b4_7e39_eef5_c1bc_e0f39399ca9d 2d9e76a6_6850_37a3_10b2_3172dcc30bcd["expectType"] b4eae887_aae6_b3d1_59a1_c048a1e8c568 --> 2d9e76a6_6850_37a3_10b2_3172dcc30bcd style b4eae887_aae6_b3d1_59a1_c048a1e8c568 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
Ref,
ref,
shallowRef,
isRef,
unref,
reactive,
toRef,
toRefs,
ToRefs,
shallowReactive,
readonly,
markRaw,
shallowReadonly,
set,
del
} from '../../index'
import { IsUnion, describe, expectType } from '../utils'
function plainType(arg: number | Ref<number>) {
// ref coercing
const coerced = ref(arg)
expectType<Ref<number>>(coerced)
// isRef as type guard
if (isRef(arg)) {
expectType<Ref<number>>(arg)
}
// ref unwrapping
expectType<number>(unref(arg))
// ref inner type should be unwrapped
const nestedRef = ref({
foo: ref(1)
})
expectType<{ foo: number }>(nestedRef.value)
// ref boolean
const falseRef = ref(false)
expectType<Ref<boolean>>(falseRef)
expectType<boolean>(falseRef.value)
// ref true
const trueRef = ref<true>(true)
expectType<Ref<true>>(trueRef)
expectType<true>(trueRef.value)
// tuple
expectType<[number, string]>(unref(ref([1, '1'])))
interface IteratorFoo {
[Symbol.iterator]: any
}
// with symbol
expectType<Ref<IteratorFoo | null | undefined>>(
ref<IteratorFoo | null | undefined>()
)
// ... (338 more lines)
Domain
Subdomains
Classes
Dependencies
Source
Frequently Asked Questions
What does reactivity-test.ts do?
reactivity-test.ts is a source file in the vue codebase, written in typescript. It belongs to the VueCore domain, VDom subdomain.
What functions are defined in reactivity-test.ts?
reactivity-test.ts defines 4 function(s): bailType, plainType, testUnrefGenerics, withSymbol.
What does reactivity-test.ts depend on?
reactivity-test.ts imports 7 module(s): ./index, IsUnion, describe, describe, expectType, expectType, utils.ts.
Where is reactivity-test.ts in the architecture?
reactivity-test.ts is located at types/test/v3/reactivity-test.ts (domain: VueCore, subdomain: VDom, directory: types/test/v3).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free