API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeSeconds
A length of time in seconds. The unit every duration in the public API is expressed in - frame deltas, the fixed step, elapsed totals, timer limits. It is a `number` at runtime and reads as one everywhere (`delta < 0.5`, `Math.round(delta)`); the brand only stops a millisecond value from being passed where seconds are meant, which no plain `number` signature can catch. Build one with Time.seconds, Time.minutes or Time.hours. Arithmetic returns a plain `number` - re-label the result when handing it back to the engine.
import { Seconds } from '@codexo/exojs'A length of time in seconds.
The unit every duration in the public API is expressed in - frame deltas, the fixed step, elapsed totals, timer limits. It is a `number` at runtime and reads as one everywhere (`delta < 0.5`, `Math.round(delta)`); the brand only stops a millisecond value from being passed where seconds are meant, which no plain `number` signature can catch.
Build one with Time.seconds, Time.minutes or Time.hours. Arithmetic returns a plain `number` - re-label the result when handing it back to the engine.
number & { [secondsBrand]: true }