API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

T

typeSeconds

@codexo/exojs / core / stable

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.

0
props
0
methods
0
events
Import
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.

Definition1
number & { [secondsBrand]: true }
Source