From c2e993e18763c8a33d2a755d4a47a7d8ff85651a Mon Sep 17 00:00:00 2001 From: Lyle Johnson Date: Thu, 31 May 2018 10:28:03 -0500 Subject: [PATCH 1/4] Updated index.d.ts for 'luxon' --- types/luxon/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/luxon/index.d.ts b/types/luxon/index.d.ts index d90ba90b13..94623c5abb 100644 --- a/types/luxon/index.d.ts +++ b/types/luxon/index.d.ts @@ -208,6 +208,7 @@ declare module 'luxon' { toLocaleParts(options?: DateTimeFormatOptions): any[]; toLocaleString(options?: DateTimeFormatOptions): string; toObject(options?: { includeConfig?: boolean }): DateObject; + toMillis(): number; toRFC2822(): string; toSQL(options?: Object): string; toSQLDate(): string; From a13bdd24337a54906f754af92c8d5967c32c0e39 Mon Sep 17 00:00:00 2001 From: Lyle Johnson Date: Thu, 31 May 2018 10:34:47 -0500 Subject: [PATCH 2/4] Add sanity tests for DateTime#fromMillis() and DateTime#toMillis() --- types/luxon/luxon-tests.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/luxon/luxon-tests.ts b/types/luxon/luxon-tests.ts index ce9d09ac8f..4396e8d7a2 100644 --- a/types/luxon/luxon-tests.ts +++ b/types/luxon/luxon-tests.ts @@ -54,6 +54,8 @@ DateTime.utc(); DateTime.local().toUTC(); DateTime.utc().toLocal(); +DateTime.fromMillis(1527780819458).toMillis(); + /* Duration */ const dur = Duration.fromObject({ hours: 2, minutes: 7 }); dt.plus(dur); From f7ec364364940de03ca3ab321fae53c9407b82b7 Mon Sep 17 00:00:00 2001 From: Lyle Johnson Date: Thu, 31 May 2018 10:43:11 -0500 Subject: [PATCH 3/4] Bump version number for types/luxon/index.d.ts from 0.5.2 to 0.5.3 --- types/luxon/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/luxon/index.d.ts b/types/luxon/index.d.ts index 94623c5abb..e71f89f106 100644 --- a/types/luxon/index.d.ts +++ b/types/luxon/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for luxon 0.5 +// Type definitions for luxon 0.5.3 // Project: https://github.com/moment/luxon#readme // Definitions by: Colby DeHart // Hyeonseok Yang From 3a411662084b68d38b20b8328f72f9cba5cc09c1 Mon Sep 17 00:00:00 2001 From: Lyle Johnson Date: Wed, 6 Jun 2018 11:45:39 -0500 Subject: [PATCH 4/4] remove patchlevel change from version number --- types/luxon/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/luxon/index.d.ts b/types/luxon/index.d.ts index e71f89f106..94623c5abb 100644 --- a/types/luxon/index.d.ts +++ b/types/luxon/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for luxon 0.5.3 +// Type definitions for luxon 0.5 // Project: https://github.com/moment/luxon#readme // Definitions by: Colby DeHart // Hyeonseok Yang