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

Function toRaw

packages/reactivity/src/reactive.ts:391–394  ·  view source on GitHub ↗
(observed: T)

Source from the content-addressed store, hash-verified

389 */
390/*@__NO_SIDE_EFFECTS__*/
391export function toRaw<T>(observed: T): T {
392 const raw = observed && (observed as Target)[ReactiveFlags.RAW]
393 return raw ? toRaw(raw) : observed
394}
395
396export type Raw<T> = T & { [RawSymbol]?: true }
397

Callers 15

constructorMethod · 0.90
valueMethod · 0.90
constructorMethod · 0.90
createIterableMethodFunction · 0.90
createReadonlyMethodFunction · 0.90
getFunction · 0.90
sizeFunction · 0.90
hasFunction · 0.90
forEachFunction · 0.90
addFunction · 0.90
setFunction · 0.90
deleteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected