MCPcopy
hub / github.com/vuejs/core / customRef

Function customRef

packages/reactivity/src/ref.ts:329–333  ·  view source on GitHub ↗
(
  factory: CustomRefFactory<T, S>,
)

Source from the content-addressed store, hash-verified

327 * @see {@link https://vuejs.org/api/reactivity-advanced.html#customref}
328 */
329export function customRef<T, S = T>(
330 factory: CustomRefFactory<T, S>,
331): Ref<T, S> {
332 return new CustomRefImpl(factory) as any
333}
334
335export type ToRefs<T = any> = {
336 [K in keyof T]: ToRef<T[K]>

Callers 3

ref.spec.tsFile · 0.90
useModelFunction · 0.90
ref.test-d.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected