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

Interface Ref

packages/reactivity/src/ref.ts:29–38  ·  packages/reactivity/src/ref.ts::Ref

Source from the content-addressed store, hash-verified

27export declare const RawSymbol: unique symbol
28
29export interface Ref<T = any, S = T> {
30 get value(): T
31 set value(_: S)
32 /**
33 * Type differentiator only.
34 * We need this to be in public d.ts but don't want it to show up in IDE
35 * autocomplete, so we use a private Symbol instead.
36 */
37 [RefSymbol]: true
38}
39
40/**
41 * Checks if a value is a ref object.

Callers

nothing calls this directly

Implementers 6

RefImplpackages/reactivity/src/ref.ts
CustomRefImplpackages/reactivity/src/ref.ts
ObjectRefImplpackages/reactivity/src/ref.ts
GetterRefImplpackages/reactivity/src/ref.ts
ComputedRefImplpackages/reactivity/src/computed.ts
TestElementpackages/runtime-dom/__tests__/patchEv

Calls

no outgoing calls

Tested by

no test coverage detected