mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[Luxon] fix ToRelativeUnit type (#36540)
There was a mistake in docs: 83d350c46f
This commit is contained in:
parent
c8a89bc403
commit
c86d5c4ed9
16
types/luxon/index.d.ts
vendored
16
types/luxon/index.d.ts
vendored
@ -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. */
|
||||
|
||||
@ -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',
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user