Skip to content

Commit

Permalink
Fix typo in DurationObject types
Browse files Browse the repository at this point in the history
  • Loading branch information
meduzen committed Feb 10, 2023
1 parent b0047ef commit f3b9f3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/duration.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export function duration(duration = {}, convertExcess = true) {

/**
* @typedef {Object} DurationObject
* @property {number=} w – Number of week
* @property {number=} d – Number of day
* @property {number=} w – Number of weeks
* @property {number=} d – Number of days
* @property {number=} h – Number of hours
* @property {number=} m – Number of minutes
* @property {number=} s – Number of seconds
Expand Down
4 changes: 2 additions & 2 deletions types/duration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
export function duration(duration?: DurationObject, convertExcess?: boolean): string;
export type DurationObject = {
/**
* – Number of week
* – Number of weeks
*/
w?: number | undefined;
/**
* – Number of day
* – Number of days
*/
d?: number | undefined;
/**
Expand Down

0 comments on commit f3b9f3e

Please sign in to comment.