Home / Function/ normalizeDirectives() — vue Function Reference

normalizeDirectives() — vue Function Reference

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

Function typescript CoreInstance VDOM calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  3ec9558d_e7e3_33aa_ce50_79026db308c2["normalizeDirectives()"]
  e3725706_6a2c_490a_e95e_84ad13fc4e05["mergeOptions()"]
  e3725706_6a2c_490a_e95e_84ad13fc4e05 -->|calls| 3ec9558d_e7e3_33aa_ce50_79026db308c2
  5af21a52_5316_e857_22eb_dce69bb60268["isFunction()"]
  3ec9558d_e7e3_33aa_ce50_79026db308c2 -->|calls| 5af21a52_5316_e857_22eb_dce69bb60268
  style 3ec9558d_e7e3_33aa_ce50_79026db308c2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/util/options.ts lines 385–395

function normalizeDirectives(options: Record<string, any>) {
  const dirs = options.directives
  if (dirs) {
    for (const key in dirs) {
      const def = dirs[key]
      if (isFunction(def)) {
        dirs[key] = { bind: def, update: def }
      }
    }
  }
}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does normalizeDirectives() do?
normalizeDirectives() is a function in the vue codebase.
What does normalizeDirectives() call?
normalizeDirectives() calls 1 function(s): isFunction.
What calls normalizeDirectives()?
normalizeDirectives() is called by 1 function(s): mergeOptions.

Analyze Your Own Codebase

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

Try Supermodel Free