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

Function toReadonly

packages/reactivity/src/reactive.ts:444–445  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

442 * @param value - The value for which a readonly proxy shall be created.
443 */
444export const toReadonly = <T extends unknown>(value: T): DeepReadonly<T> =>
445 isObject(value) ? readonly(value) : (value as DeepReadonly<T>)

Callers 2

toWrappedFunction · 0.90
renderListFunction · 0.90

Calls 2

isObjectFunction · 0.90
readonlyFunction · 0.85

Tested by

no test coverage detected