DateTime.until needs to return a typeof Interval

https://github.com/moment/luxon/blob/master/src/datetime.js#L1650
This commit is contained in:
Jonathan Siebern
2018-02-15 14:32:31 +01:00
parent 6d08c4cece
commit 2c31712ec5
+2 -1
View File
@@ -2,6 +2,7 @@
// Project: https://github.com/moment/luxon#readme
// Definitions by: Colby DeHart <https://github.com/colbydehart>
// Hyeonseok Yang <https://github.com/FourwingsY>
// Jonathan Siebern <https://github.com/jsiebern>
// 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;
}