Skip to main content
Temporal.AssignmentOptions - Temporal - Web documentation
type alias Temporal.AssignmentOptions
Unstable

Options for assigning fields using with() or entire objects with from().

Properties

optional
overflow: "constrain" | "reject"

How to deal with out-of-range values

  • In 'constrain' mode, out-of-range values are clamped to the nearest in-range value.
  • In 'reject' mode, out-of-range values will cause the function to throw a RangeError.

The default is 'constrain'.