We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f02bd6f commit b31cdf8Copy full SHA for b31cdf8
src/types.ts
@@ -288,6 +288,12 @@ export interface NearestMinutesOptions {
288
nearestTo?: NearestMinutes;
289
}
290
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
+
297
export interface NearestHoursOptions {
- nearestTo?: number; // FIXME
298
+ nearestTo?: NearestHours;
299
0 commit comments