mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Add missing Luxon DateTime isInLeapYear getter (#29300)
This commit is contained in:
committed by
Wesley Wigham
parent
eb7be7c32c
commit
dda6e33a6c
Vendored
+2
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for luxon 1.2
|
||||
// Type definitions for luxon 1.4
|
||||
// Project: https://github.com/moment/luxon#readme
|
||||
// Definitions by: Colby DeHart <https://github.com/colbydehart>
|
||||
// Hyeonseok Yang <https://github.com/FourwingsY>
|
||||
@@ -154,6 +154,7 @@ declare module 'luxon' {
|
||||
hour: number;
|
||||
invalidReason: string;
|
||||
isInDST: boolean;
|
||||
isInLeapYear: boolean;
|
||||
isOffsetFixed: boolean;
|
||||
isValid: boolean;
|
||||
locale: string;
|
||||
|
||||
@@ -33,6 +33,7 @@ getters.zoneName;
|
||||
getters.offset;
|
||||
getters.daysInMonth;
|
||||
getters.ordinal;
|
||||
getters.isInLeapYear;
|
||||
|
||||
dt.toLocaleString();
|
||||
dt.toLocaleString(DateTime.DATE_MED);
|
||||
|
||||
Reference in New Issue
Block a user