Home / Function/ assertObjectType() — vue Function Reference

assertObjectType() — vue Function Reference

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

Function typescript VueCore Instance calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  ba5dccf7_9e1a_946e_25f6_4f15d51eb5e8["assertObjectType()"]
  395cc6b0_6f88_f1b1_f5dd_8cdf5c229777["options.ts"]
  ba5dccf7_9e1a_946e_25f6_4f15d51eb5e8 -->|defined in| 395cc6b0_6f88_f1b1_f5dd_8cdf5c229777
  56d24519_565b_dd1d_a05d_4b40265e0027["mergeAssets()"]
  56d24519_565b_dd1d_a05d_4b40265e0027 -->|calls| ba5dccf7_9e1a_946e_25f6_4f15d51eb5e8
  400da704_fbee_8793_f946_5579c4ca50dd["strats()"]
  400da704_fbee_8793_f946_5579c4ca50dd -->|calls| ba5dccf7_9e1a_946e_25f6_4f15d51eb5e8
  48bc61b1_05ca_3121_50a7_2f02cdcf2f03["warn()"]
  ba5dccf7_9e1a_946e_25f6_4f15d51eb5e8 -->|calls| 48bc61b1_05ca_3121_50a7_2f02cdcf2f03
  style ba5dccf7_9e1a_946e_25f6_4f15d51eb5e8 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