Skip to content

RoundingOptions

RoundingOptions is a structural type that appears in public signatures. It is not directly importable.

used in Temporal until()/since() methods like Temporal.PlainDate.prototype.until(other, options)

type RoundingOptions<Unit extends Temporal.DateTimeUnit> = {
smallestUnit?: Temporal.SmallestUnit<Unit>;
roundingIncrement?: number;
roundingMode?: Temporal.RoundingMode;
};

types/rounding-options.ts