Module

x/vue3_reactivity/mod.ts>shallowReadonly

vue3_reactivity is forck by @vue/reactivity for deno.
Latest
function shallowReadonly
import { shallowReadonly } from "https://dotland.deno.dev/x/vue3_reactivity@v1.0.0/mod.ts";

Returns a reactive-copy of the original object, where only the root level properties are readonly, and does NOT unwrap refs nor recursively convert returned properties. This is used for creating the props proxy object for stateful components.

Type Parameters

T extends object

Parameters

target: T

Returns

Readonly<T>