租房小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
774 B

3 months ago
  1. import { PluginFunc } from 'dayjs'
  2. declare const plugin: PluginFunc
  3. export = plugin
  4. declare module 'dayjs' {
  5. export function max(dayjs: [Dayjs, ...Dayjs[]]): Dayjs
  6. export function max(noDates: never[]): null
  7. export function max(maybeDates: Dayjs[]): Dayjs | null
  8. export function max(...dayjs: [Dayjs, ...Dayjs[]]): Dayjs
  9. export function max(...noDates: never[]): null
  10. export function max(...maybeDates: Dayjs[]): Dayjs | null
  11. export function min(dayjs: [Dayjs, ...Dayjs[]]): Dayjs
  12. export function min(noDates: never[]): null
  13. export function min(maybeDates: Dayjs[]): Dayjs | null
  14. export function min(...dayjs: [Dayjs, ...Dayjs[]]): Dayjs
  15. export function min(...noDates: never[]): null
  16. export function min(...maybeDates: Dayjs[]): Dayjs | null
  17. }