Home / Function/ toTimeValue() — astro Function Reference

toTimeValue() — astro Function Reference

Architecture documentation for the toTimeValue() function in transition.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  6a0dc7aa_35e4_faf3_1aac_2aa0d63c4bf7["toTimeValue()"]
  f4a9c12d_07bd_6de6_237f_8553c55f6fef["transition.ts"]
  6a0dc7aa_35e4_faf3_1aac_2aa0d63c4bf7 -->|defined in| f4a9c12d_07bd_6de6_237f_8553c55f6fef
  3aecb01c_506c_3888_c7f9_e9e3dc14f2e3["stringifyAnimations()"]
  3aecb01c_506c_3888_c7f9_e9e3dc14f2e3 -->|calls| 6a0dc7aa_35e4_faf3_1aac_2aa0d63c4bf7
  style 6a0dc7aa_35e4_faf3_1aac_2aa0d63c4bf7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/server/transition.ts lines 263–265

function toTimeValue(num: number | string) {
	return typeof num === 'number' ? num + 'ms' : num;
}

Domain

Subdomains

Frequently Asked Questions

What does toTimeValue() do?
toTimeValue() is a function in the astro codebase, defined in packages/astro/src/runtime/server/transition.ts.
Where is toTimeValue() defined?
toTimeValue() is defined in packages/astro/src/runtime/server/transition.ts at line 263.
What calls toTimeValue()?
toTimeValue() is called by 1 function(s): stringifyAnimations.

Analyze Your Own Codebase

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

Try Supermodel Free