[Luxon] fix ToRelativeUnit type (#36540)

There was a mistake in docs: 83d350c46f
This commit is contained in:
Anton Dosov 2019-07-01 19:25:53 +02:00 committed by Ryan Cavanaugh
parent c8a89bc403
commit c86d5c4ed9
2 changed files with 10 additions and 10 deletions

View File

@ -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. */

View File

@ -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',
});