Skip to content

Commit 62d9042

Browse files
authored
fix: Add null to min and max plugin return type (#2355)
1 parent 3b1060f commit 62d9042

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

types/plugin/minMax.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ declare const plugin: PluginFunc
44
export = plugin
55

66
declare module 'dayjs' {
7-
export function max(dayjs: Dayjs[]): Dayjs
8-
export function max(...dayjs: Dayjs[]): Dayjs
9-
export function min(dayjs: Dayjs[]): Dayjs
10-
export function min(...dayjs: Dayjs[]): 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
1111
}

0 commit comments

Comments
 (0)