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
  d36d9946_3e09_5ada_0e39_829fc05e2f14["assertObjectType()"]
  5c734a8f_efba_819c_28fc_f56bfd6b701f["options.ts"]
  d36d9946_3e09_5ada_0e39_829fc05e2f14 -->|defined in| 5c734a8f_efba_819c_28fc_f56bfd6b701f
  7f27ea0c_7af2_c0e8_e806_d929cab93cc1["mergeAssets()"]
  7f27ea0c_7af2_c0e8_e806_d929cab93cc1 -->|calls| d36d9946_3e09_5ada_0e39_829fc05e2f14
  b1cf23c1_b9b6_663a_5e34_0711ca6cb0b6["strats()"]
  b1cf23c1_b9b6_663a_5e34_0711ca6cb0b6 -->|calls| d36d9946_3e09_5ada_0e39_829fc05e2f14
  e8b22500_20a5_2e19_4c79_386004841499["warn()"]
  d36d9946_3e09_5ada_0e39_829fc05e2f14 -->|calls| e8b22500_20a5_2e19_4c79_386004841499
  style d36d9946_3e09_5ada_0e39_829fc05e2f14 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

Calls

Frequently Asked Questions

What does assertObjectType() do?
assertObjectType() is a function in the vue codebase, defined in src/core/util/options.ts.
Where is assertObjectType() defined?
assertObjectType() is defined in src/core/util/options.ts at line 397.
What does assertObjectType() call?
assertObjectType() calls 1 function(s): 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