import { expectType, $ref, $computed, $fromRefs, $raw, ref, Ref, ComputedRef } from './index' // $ref expectType($ref(1)) expectType($ref(ref(1))) expectType<{ foo: number }>($ref({ foo: ref(1) })) // $computed expectType($computed(() => 1)) let b = $ref(1) expectType($computed(() => b)) function useFoo() { return { x: ref(1), y: ref('hi'), z: 123 } } // $fromRefs const { x, y, z } = $fromRefs(useFoo()) expectType(x) expectType(y) expectType(z) // $raw expectType>($raw(x)) expectType>($raw(y)) const c = $computed(() => 1) const cRef = $raw(c) expectType>(cRef)