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

Function shallowReadonly

packages/reactivity/src/reactive.ts:252–260  ·  view source on GitHub ↗
(target: T)

Source from the content-addressed store, hash-verified

250 */
251/*@__NO_SIDE_EFFECTS__*/
252export function shallowReadonly<T extends object>(target: T): Readonly<T> {
253 return createReactiveObject(
254 target,
255 true,
256 shallowReadonlyHandlers,
257 shallowReadonlyCollectionHandlers,
258 shallowReadonlyMap,
259 )
260}
261
262function createReactiveObject(
263 target: Target,

Callers 13

ref.spec.tsFile · 0.90
reactive.spec.tsFile · 0.90
renderComponentRootFunction · 0.90
attrsFunction · 0.90
setupStatefulComponentFunction · 0.90
validatePropsFunction · 0.90

Calls 1

createReactiveObjectFunction · 0.85

Tested by

no test coverage detected