From dda6e33a6cdf7fb911861997b8aaeb6e503dd6c7 Mon Sep 17 00:00:00 2001 From: Eric MORAND Date: Fri, 5 Oct 2018 23:50:48 +0200 Subject: [PATCH] Add missing Luxon DateTime isInLeapYear getter (#29300) --- types/luxon/index.d.ts | 3 ++- types/luxon/luxon-tests.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/types/luxon/index.d.ts b/types/luxon/index.d.ts index e96e389894..7253dc1ce6 100644 --- a/types/luxon/index.d.ts +++ b/types/luxon/index.d.ts @@ -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 // Hyeonseok Yang @@ -154,6 +154,7 @@ declare module 'luxon' { hour: number; invalidReason: string; isInDST: boolean; + isInLeapYear: boolean; isOffsetFixed: boolean; isValid: boolean; locale: string; diff --git a/types/luxon/luxon-tests.ts b/types/luxon/luxon-tests.ts index 017f07b0c6..b7d426a2c2 100644 --- a/types/luxon/luxon-tests.ts +++ b/types/luxon/luxon-tests.ts @@ -33,6 +33,7 @@ getters.zoneName; getters.offset; getters.daysInMonth; getters.ordinal; +getters.isInLeapYear; dt.toLocaleString(); dt.toLocaleString(DateTime.DATE_MED);