[Luxon] fix ToRelativeUnit type (#36540)

There was a mistake in docs: https://github.com/moment/luxon/commit/83d350c46f3cf59567e574b121c39fdd4a6960da
This commit is contained in:
Anton Dosov
2019-07-01 10:25:53 -07:00
committed by Ryan Cavanaugh
parent c8a89bc403
commit c86d5c4ed9
2 changed files with 10 additions and 10 deletions
+8 -8
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. */
+2 -2
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',
});