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

Function propertyToRef

packages/reactivity/src/ref.ts:519–525  ·  view source on GitHub ↗
(
  source: Record<PropertyKey, any>,
  key: string | number | symbol,
  defaultValue?: unknown,
)

Source from the content-addressed store, hash-verified

517}
518
519function propertyToRef(
520 source: Record<PropertyKey, any>,
521 key: string | number | symbol,
522 defaultValue?: unknown,
523) {
524 return new ObjectRefImpl(source, key, defaultValue) as any
525}
526
527/**
528 * This is a special exported interface for other packages to declare

Callers 2

toRefsFunction · 0.85
toRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected