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
  08354a11_4492_ce57_82ac_aaf1fc3adbc9["shallowReadonly()"]
  4f0f141e_f70c_4533_8c1b_de374c265d9a["createReadonly()"]
  08354a11_4492_ce57_82ac_aaf1fc3adbc9 -->|calls| 4f0f141e_f70c_4533_8c1b_de374c265d9a
  style 08354a11_4492_ce57_82ac_aaf1fc3adbc9 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.
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