Home / Function/ shallowReadonly() — vue Function Reference

shallowReadonly() — vue Function Reference

Architecture documentation for the shallowReadonly() function in readonly.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  49fe5e94_ca63_20f7_3f17_a5990fd207e7["shallowReadonly()"]
  0c0a6db0_d081_921f_5fe2_f51407664b15["readonly.ts"]
  49fe5e94_ca63_20f7_3f17_a5990fd207e7 -->|defined in| 0c0a6db0_d081_921f_5fe2_f51407664b15
  570658a0_90e9_3496_213a_7280821a5a99["createReadonly()"]
  49fe5e94_ca63_20f7_3f17_a5990fd207e7 -->|calls| 570658a0_90e9_3496_213a_7280821a5a99
  style 49fe5e94_ca63_20f7_3f17_a5990fd207e7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/v3/reactivity/readonly.ts lines 125–127

export function shallowReadonly<T extends object>(target: T): Readonly<T> {
  return createReadonly(target, true)
}

Domain

Subdomains

Frequently Asked Questions

What does shallowReadonly() do?
shallowReadonly() is a function in the vue codebase, defined in src/v3/reactivity/readonly.ts.
Where is shallowReadonly() defined?
shallowReadonly() is defined in src/v3/reactivity/readonly.ts at line 125.
What does shallowReadonly() call?
shallowReadonly() calls 1 function(s): createReadonly.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free