vue-lynx / readonly
Function: readonly()
Takes an object (reactive or plain) or a ref and returns a readonly proxy to the original.
A readonly proxy is deep: any nested property accessed will be readonly as well. It also has the same ref-unwrapping behavior as reactive, except the unwrapped values will also be made readonly.
Type Parameters
Parameters
Returns
DeepReadonly<UnwrapNestedRefs<T>>
Example
See
https://vuejs.org/api/reactivity-core.html#readonly
Defined in
node_modules/.pnpm/@vue+reactivity@3.5.30/node_modules/@vue/reactivity/dist/reactivity.d.ts:114