@burglekitt/gmt
Version:
Temporal-based date and time utilities with timezone support and polyfill integration
11 lines (10 loc) • 400 B
TypeScript
import type { Overflow } from "../types/index.js";
/**
* Resolve an optional overflow value to its default ("constrain") when unset.
*
* @param overflow optional overflow value
* @example resolveOverflow(undefined) // "constrain"
* @example resolveOverflow("reject") // "reject"
* @returns the resolved overflow value
*/
export declare function resolveOverflow(overflow?: Overflow): Overflow;