parent
c4f213b425
commit
e9172db68b
|
@ -28,6 +28,7 @@ export {
|
||||||
shallowReadonly,
|
shallowReadonly,
|
||||||
markRaw,
|
markRaw,
|
||||||
toRaw,
|
toRaw,
|
||||||
|
Raw,
|
||||||
ReactiveFlags,
|
ReactiveFlags,
|
||||||
DeepReadonly,
|
DeepReadonly,
|
||||||
ShallowReactive,
|
ShallowReactive,
|
||||||
|
|
|
@ -241,9 +241,9 @@ export function toRaw<T>(observed: T): T {
|
||||||
return raw ? toRaw(raw) : observed
|
return raw ? toRaw(raw) : observed
|
||||||
}
|
}
|
||||||
|
|
||||||
export function markRaw<T extends object>(
|
export type Raw<T> = T & { [RawSymbol]?: true }
|
||||||
value: T
|
|
||||||
): T & { [RawSymbol]?: true } {
|
export function markRaw<T extends object>(value: T): Raw<T> {
|
||||||
def(value, ReactiveFlags.SKIP, true)
|
def(value, ReactiveFlags.SKIP, true)
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,7 +172,8 @@ export {
|
||||||
DebuggerEvent,
|
DebuggerEvent,
|
||||||
DebuggerEventExtraInfo,
|
DebuggerEventExtraInfo,
|
||||||
TrackOpTypes,
|
TrackOpTypes,
|
||||||
TriggerOpTypes
|
TriggerOpTypes,
|
||||||
|
Raw
|
||||||
} from '@vue/reactivity'
|
} from '@vue/reactivity'
|
||||||
export {
|
export {
|
||||||
WatchEffect,
|
WatchEffect,
|
||||||
|
|
Loading…
Reference in New Issue