Temporal.RoundTo - Web documentation
type alias Temporal.RoundTo
Unstable

round methods take one required parameter. If a string is provided, the resulting Temporal.Duration object will be rounded to that unit. If an object is provided, its smallestUnit property is required while other properties are optional. A string is treated the same as an object whose smallestUnit property value is that string.

Type Parameters

T extends DateTimeUnit

Definition

SmallestUnit<T> | { smallestUnit: SmallestUnit<T>; roundingIncrement?: number; roundingMode?: RoundingMode; }