Skip to content

Commit

Permalink
fix: Add null to min and max return type
Browse files Browse the repository at this point in the history
  • Loading branch information
YuLingCheng committed Jun 27, 2023
1 parent 3b1060f commit 92257a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/plugin/minMax.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ declare const plugin: PluginFunc
export = plugin

declare module 'dayjs' {
export function max(dayjs: Dayjs[]): Dayjs
export function max(...dayjs: Dayjs[]): Dayjs
export function min(dayjs: Dayjs[]): Dayjs
export function min(...dayjs: Dayjs[]): Dayjs
export function max(dayjs: Dayjs[]): Dayjs | null
export function max(...dayjs: Dayjs[]): Dayjs | null
export function min(dayjs: Dayjs[]): Dayjs | null
export function min(...dayjs: Dayjs[]): Dayjs | null
}

0 comments on commit 92257a7

Please sign in to comment.