From b31cdf8562b6742fb1dc0676d332b0f2ceb79da1 Mon Sep 17 00:00:00 2001 From: sakamossan Date: Fri, 2 Feb 2024 10:07:09 +0900 Subject: [PATCH] Fix typings --- src/types.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index a48b68d896..2b51e2d784 100644 --- a/src/types.ts +++ b/src/types.ts @@ -288,6 +288,12 @@ export interface NearestMinutesOptions { nearestTo?: NearestMinutes; } +/** + * Nearest hour type. Goes from 1 to 12, where 1 is the nearest hour and 12 + * is nearest half a day. + */ +export type NearestHours = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; + export interface NearestHoursOptions { - nearestTo?: number; // FIXME + nearestTo?: NearestHours; }