[luxon] Splitted min and max in a function that only returns undefined and a function that only returnes a DateTime. (#24715)

This commit is contained in:
Martijn Verbakel
2018-04-09 19:32:12 +02:00
committed by Mohamed Hegazy
parent 3321a12dc9
commit 0b4845442c

View File

@@ -135,8 +135,10 @@ declare module 'luxon' {
second?: number,
millisecond?: number
): DateTime;
static max(...dateTimes: DateTime[]): DateTime | undefined;
static min(...dateTimes: DateTime[]): DateTime | undefined;
static max(): undefined;
static max(...dateTimes: DateTime[]): DateTime;
static min(): undefined;
static min(...dateTimes: DateTime[]): DateTime;
static utc(
year?: number,
month?: number,