Core
Add-ons
Appearance
Normalize value/ref/getter to ref or computed.
ref
computed
import { toRef } from 'comuse-core' const foo = ref('hi') const a = toRef(0) // Ref<number> const b = toRef(foo) // Ref<string> const c = toRef(() => 'hi') // ComputedRef<string>
Source • Docs
v4.1.0
ffe0c