mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
DateTime.until needs to return a typeof Interval
https://github.com/moment/luxon/blob/master/src/datetime.js#L1650
This commit is contained in:
Vendored
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user