Commit 3dd0b6a 1 parent bdcc336 commit 3dd0b6a Copy full SHA for 3dd0b6a
File tree 1 file changed +15
-4
lines changed
1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,19 @@ declare const plugin: PluginFunc
4
4
export = plugin
5
5
6
6
declare module 'dayjs' {
7
- export function max ( dayjs : Dayjs [ ] ) : Dayjs | null
8
- export function max ( ...dayjs : Dayjs [ ] ) : Dayjs | null
9
- export function min ( dayjs : Dayjs [ ] ) : Dayjs | null
10
- export function min ( ...dayjs : Dayjs [ ] ) : Dayjs | null
7
+ export function max ( dayjs : [ Dayjs , ...Dayjs [ ] ] ) : Dayjs
8
+ export function max ( noDates : never [ ] ) : null
9
+ export function max ( maybeDates : Dayjs [ ] ) : Dayjs | null
10
+
11
+ export function max ( ...dayjs : [ Dayjs , ...Dayjs [ ] ] ) : Dayjs
12
+ export function max ( ...noDates : never [ ] ) : null
13
+ export function max ( ...maybeDates : Dayjs [ ] ) : Dayjs | null
14
+
15
+ export function min ( dayjs : [ Dayjs , ...Dayjs [ ] ] ) : Dayjs
16
+ export function min ( noDates : never [ ] ) : null
17
+ export function min ( maybeDates : Dayjs [ ] ) : Dayjs | null
18
+
19
+ export function min ( ...dayjs : [ Dayjs , ...Dayjs [ ] ] ) : Dayjs
20
+ export function min ( ...noDates : never [ ] ) : null
21
+ export function min ( ...maybeDates : Dayjs [ ] ) : Dayjs | null
11
22
}
You can’t perform that action at this time.
0 commit comments