vue-lynx / shallowReadonly
Function: shallowReadonly()
Shallow version of readonly.
Unlike readonly, there is no deep conversion: only root-level properties are made readonly. Property values are stored and exposed as-is - this also means properties with ref values will not be automatically unwrapped.
Type Parameters
Parameters
Returns
Readonly<T>
Example
See
https://vuejs.org/api/reactivity-advanced.html#shallowreadonly
Defined in
node_modules/.pnpm/@vue+reactivity@3.5.30/node_modules/@vue/reactivity/dist/reactivity.d.ts:145