mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 00:59:29 +08:00
[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:
committed by
Mohamed Hegazy
parent
3321a12dc9
commit
0b4845442c
6
types/luxon/index.d.ts
vendored
6
types/luxon/index.d.ts
vendored
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user