import { unref } from 'vue'; import type { MaybeComputedRef } from './types'; /** * Get the value of value/ref/getter. */ export function resolveUnref(r: MaybeComputedRef): T { return typeof r === 'function' ? (r as any)() : unref(r); }