From 2c31712ec57a29a1df39ac0aaa5095fb7130b157 Mon Sep 17 00:00:00 2001 From: Jonathan Siebern Date: Thu, 15 Feb 2018 14:32:31 +0100 Subject: [PATCH] DateTime.until needs to return a typeof Interval https://github.com/moment/luxon/blob/master/src/datetime.js#L1650 --- types/luxon/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/luxon/index.d.ts b/types/luxon/index.d.ts index fac0b90fe6..0d66b9750c 100644 --- a/types/luxon/index.d.ts +++ b/types/luxon/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/moment/luxon#readme // Definitions by: Colby DeHart // Hyeonseok Yang +// Jonathan Siebern // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -209,7 +210,7 @@ declare module 'luxon' { toSQLTime(options?: Object): string; toString(): string; toUTC(offset?: number, options?: ZoneOptions): DateTime; - until(other: DateTime): Duration; + until(other: DateTime): Interval; valueOf(): number; }