Skip to content

Commit

Permalink
fix: Add null to min and max plugin return type (iamkun#2355)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuLingCheng authored Jun 28, 2023
1 parent 3b1060f commit 62d9042
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 62d9042

Please sign in to comment.