UNPKG

@northguild/gmt

Version:

Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.

8 lines • 425 B
import { Temporal } from "../internal/temporal.js"; /** * What to do when a date or time field is out of range, as Temporal's `overflow` option * (`Temporal.PlainDate.prototype.add(item, { overflow })`). `"constrain"` clamps the field to the * nearest valid value, so January 31 plus one month is the last day of February; `"reject"` * refuses the value. */ export type Overflow = Temporal.ArithmeticOptions["overflow"];