Creates and manipulates reactive reference objects that trigger updates when their value changes, used to manage state in Vue components.
// Source: https://github.com/vuejs/vue | License: MIT | Copyright 2013-present, Yuxi (Evan) You
// Provided via justclaw.it.com; keep this notice with the code.
import { defineReactive } from 'core/observer/index'
import {
isReactive,
ReactiveFlags,
type ShallowReactiveMarker
} from './reactive'
import type { IfAny } from 'types/utils'
import Dep from 'core/observer/dep'
import { warn, isArray, def, isServerRendering } from 'core/util'
import { TrackOpTypes, TriggerOpTypes } from './operations'
declare const RefSymbol: unique symbol
export declare const RawSymbol: unique symbol
/**
* @internal
*/
export const RefFlag = `__v_isRef`
export interface Ref<T = any> {
value: T
/**
* Type differentiator only.
* We need this to be in public d.ts but don't want it to show up i
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key