Skip to content

Commit b31cdf8

Browse files
committed
Fix typings
1 parent f02bd6f commit b31cdf8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/types.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,12 @@ export interface NearestMinutesOptions {
288288
nearestTo?: NearestMinutes;
289289
}
290290

291+
/**
292+
* Nearest hour type. Goes from 1 to 12, where 1 is the nearest hour and 12
293+
* is nearest half a day.
294+
*/
295+
export type NearestHours = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
296+
291297
export interface NearestHoursOptions {
292-
nearestTo?: number; // FIXME
298+
nearestTo?: NearestHours;
293299
}

0 commit comments

Comments
 (0)