Home / Function/ assertObjectType() — vue Function Reference

assertObjectType() — vue Function Reference

Architecture documentation for the assertObjectType() function in options.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  6ba3e097_ebbc_49dd_52d6_10c0423a7ed9["assertObjectType()"]
  57620c55_f06c_70f2_54f4_7ba5c1cf60d7["mergeAssets()"]
  57620c55_f06c_70f2_54f4_7ba5c1cf60d7 -->|calls| 6ba3e097_ebbc_49dd_52d6_10c0423a7ed9
  e1b94d83_39cf_0384_0c5f_0101fd7c94ec["strats()"]
  e1b94d83_39cf_0384_0c5f_0101fd7c94ec -->|calls| 6ba3e097_ebbc_49dd_52d6_10c0423a7ed9
  80bfcce4_fe50_33ea_903d_c2ad718873ba["isPlainObject()"]
  6ba3e097_ebbc_49dd_52d6_10c0423a7ed9 -->|calls| 80bfcce4_fe50_33ea_903d_c2ad718873ba
  e3484a9f_f8a5_4082_0208_641d58b965c3["warn()"]
  6ba3e097_ebbc_49dd_52d6_10c0423a7ed9 -->|calls| e3484a9f_f8a5_4082_0208_641d58b965c3
  872a8457_76aa_9dfa_922f_0876e2f9171d["toRawType()"]
  6ba3e097_ebbc_49dd_52d6_10c0423a7ed9 -->|calls| 872a8457_76aa_9dfa_922f_0876e2f9171d
  style 6ba3e097_ebbc_49dd_52d6_10c0423a7ed9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/util/options.ts lines 397–405

function assertObjectType(name: string, value: any, vm: Component | null) {
  if (!isPlainObject(value)) {
    warn(
      `Invalid value for option "${name}": expected an Object, ` +
        `but got ${toRawType(value)}.`,
      vm
    )
  }
}

Domain

Subdomains

Frequently Asked Questions

What does assertObjectType() do?
assertObjectType() is a function in the vue codebase.
What does assertObjectType() call?
assertObjectType() calls 3 function(s): isPlainObject, toRawType, warn.
What calls assertObjectType()?
assertObjectType() is called by 2 function(s): mergeAssets, strats.

Analyze Your Own Codebase

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

Try Supermodel Free