From 65d65963e5a3ea790e0aba9647470336d1453306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20B=C5=82a=C5=BCejewicz=20=28Peter=20Blazejewicz=29?= Date: Fri, 18 Sep 2020 22:54:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#47744=20update(lux?= =?UTF-8?q?on):=20`DATE=5FMED=5FWITH=5FWEEKDAY`=20from=201.25=20by=20@pete?= =?UTF-8?q?rblazejewicz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - `DATE_MED_WITH_WEEKDAY` - version bump https://github.com/moment/luxon/compare/1.24.1...1.25.0 Thanks! --- types/luxon/index.d.ts | 4 +++- types/luxon/luxon-tests.ts | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/types/luxon/index.d.ts b/types/luxon/index.d.ts index 100234b7a9..2582ecba4b 100644 --- a/types/luxon/index.d.ts +++ b/types/luxon/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for luxon 1.24 +// Type definitions for luxon 1.25 // Project: https://github.com/moment/luxon#readme // Definitions by: Colby DeHart // Hyeonseok Yang @@ -160,6 +160,8 @@ export class DateTime { static readonly DATE_FULL: DateTimeFormatOptions; static readonly DATE_HUGE: DateTimeFormatOptions; static readonly DATE_MED: DateTimeFormatOptions; + /** abbreviated date with weekday */ + static readonly DATE_MED_WITH_WEEKDAY: DateTimeFormatOptions; static readonly DATE_SHORT: DateTimeFormatOptions; static readonly TIME_24_SIMPLE: DateTimeFormatOptions; static readonly TIME_24_WITH_LONG_OFFSET: DateTimeFormatOptions; diff --git a/types/luxon/luxon-tests.ts b/types/luxon/luxon-tests.ts index 7e59296d8d..41c3f1ccd1 100644 --- a/types/luxon/luxon-tests.ts +++ b/types/luxon/luxon-tests.ts @@ -12,6 +12,9 @@ import { } from 'luxon'; /* DateTime */ +DateTime.DATE_MED; // $ExpectType DateTimeFormatOptions +DateTime.DATE_MED_WITH_WEEKDAY; // $ExpectType DateTimeFormatOptions + const dt = DateTime.local(2017, 5, 15, 8, 30); const now = DateTime.local();