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 and ohsory1324 committed Dec 20, 2023
1 parent 0a46675 commit de9fade
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 de9fade

Please sign in to comment.