@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.
11 lines • 464 B
TypeScript
/**
* Type guard to check if a value is a valid ISO day-of-week number (1 = Monday … 7 = Sunday).
*
* @param value day-of-week candidate
* @example isValidDayOfWeek(1) // true
* @example isValidDayOfWeek(7) // true
* @example isValidDayOfWeek(0) // false
* @example isValidDayOfWeek(8) // false
* @returns boolean indicating whether the value is a valid ISO day-of-week number
*/
export declare function isValidDayOfWeek(value: number): value is number;