Home / Function/ checkDuration() — vue Function Reference

checkDuration() — vue Function Reference

Architecture documentation for the checkDuration() function in transition.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  8b2c220c_0f54_5bed_b497_d59894b7adad["checkDuration()"]
  4d46ad51_46f5_2e09_4e74_85f233ccffed["transition.ts"]
  8b2c220c_0f54_5bed_b497_d59894b7adad -->|defined in| 4d46ad51_46f5_2e09_4e74_85f233ccffed
  aff958ec_f8bd_7b1b_435a_dbec64ddb377["enter()"]
  aff958ec_f8bd_7b1b_435a_dbec64ddb377 -->|calls| 8b2c220c_0f54_5bed_b497_d59894b7adad
  9f2f50fa_9a37_3be6_7a60_2ae854f23afc["leave()"]
  9f2f50fa_9a37_3be6_7a60_2ae854f23afc -->|calls| 8b2c220c_0f54_5bed_b497_d59894b7adad
  style 8b2c220c_0f54_5bed_b497_d59894b7adad fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/platforms/web/runtime/modules/transition.ts lines 278–292

function checkDuration(val, name, vnode) {
  if (typeof val !== 'number') {
    warn(
      `<transition> explicit ${name} duration is not a valid number - ` +
        `got ${JSON.stringify(val)}.`,
      vnode.context
    )
  } else if (isNaN(val)) {
    warn(
      `<transition> explicit ${name} duration is NaN - ` +
        'the duration expression might be incorrect.',
      vnode.context
    )
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does checkDuration() do?
checkDuration() is a function in the vue codebase, defined in src/platforms/web/runtime/modules/transition.ts.
Where is checkDuration() defined?
checkDuration() is defined in src/platforms/web/runtime/modules/transition.ts at line 278.
What calls checkDuration()?
checkDuration() is called by 2 function(s): enter, leave.

Analyze Your Own Codebase

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

Try Supermodel Free