Skip to content

Commit

Permalink
Fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
sakamossan committed Feb 2, 2024
1 parent f02bd6f commit b31cdf8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/types.ts
Expand Up @@ -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;
}

0 comments on commit b31cdf8

Please sign in to comment.