( objectWithRefs: T, )
| 278 | * that contains refs. |
| 279 | */ |
| 280 | export function proxyRefs<T extends object>( |
| 281 | objectWithRefs: T, |
| 282 | ): ShallowUnwrapRef<T> { |
| 283 | return isReactive(objectWithRefs) |
| 284 | ? (objectWithRefs as ShallowUnwrapRef<T>) |
| 285 | : new Proxy(objectWithRefs, shallowUnwrapHandlers) |
| 286 | } |
| 287 | |
| 288 | export type CustomRefFactory<T, S = T> = ( |
| 289 | track: () => void, |
no test coverage detected