From f3b9f3eab46f0c6988127f97c7c58229534b57bb Mon Sep 17 00:00:00 2001 From: Mehdi <9340937+meduzen@users.noreply.github.com> Date: Wed, 8 Feb 2023 15:44:07 +0100 Subject: [PATCH] Fix typo in DurationObject types --- src/duration.js | 4 ++-- types/duration.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/duration.js b/src/duration.js index 35bf59e..dcf7f7a 100644 --- a/src/duration.js +++ b/src/duration.js @@ -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 diff --git a/types/duration.d.ts b/types/duration.d.ts index 846d307..4e1fa67 100644 --- a/types/duration.d.ts +++ b/types/duration.d.ts @@ -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; /**