diff --git a/types/luxon/index.d.ts b/types/luxon/index.d.ts index 58620324f8..ecb121c7ea 100644 --- a/types/luxon/index.d.ts +++ b/types/luxon/index.d.ts @@ -22,14 +22,14 @@ export interface ZoneOptions { } export type ToRelativeUnit = - | 'year' - | 'quarter' - | 'month' - | 'week' - | 'day' - | 'hour' - | 'minute' - | 'second'; + | 'years' + | 'quarters' + | 'months' + | 'weeks' + | 'days' + | 'hours' + | 'minutes' + | 'seconds'; export interface ToRelativeOptions { /** The DateTime to use as the basis to which this time is compared. Defaults to now. */ diff --git a/types/luxon/luxon-tests.ts b/types/luxon/luxon-tests.ts index 130a20b564..d3b24d3f30 100644 --- a/types/luxon/luxon-tests.ts +++ b/types/luxon/luxon-tests.ts @@ -98,7 +98,7 @@ dt.toRelative({ base: DateTime.local(), locale: 'fr', style: 'long', - unit: 'day', + unit: 'days', round: true, padding: 10, numberingSystem: 'bali', @@ -108,7 +108,7 @@ dt.toRelative({ dt.toRelativeCalendar({ base: DateTime.local(), locale: 'fr', - unit: 'day', + unit: 'days', numberingSystem: 'bali', });