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.

27 lines
609 B

1 month ago
  1. import { PluginFunc, OpUnitType, ConfigType } from 'dayjs'
  2. declare const plugin: PluginFunc
  3. export = plugin
  4. type ISOUnitType = OpUnitType | 'isoWeek';
  5. declare module 'dayjs' {
  6. interface Dayjs {
  7. isoWeekYear(): number
  8. isoWeek(): number
  9. isoWeek(value: number): Dayjs
  10. isoWeekday(): number
  11. isoWeekday(value: number): Dayjs
  12. startOf(unit: ISOUnitType): Dayjs
  13. endOf(unit: ISOUnitType): Dayjs
  14. isSame(date?: ConfigType, unit?: ISOUnitType): boolean
  15. isBefore(date?: ConfigType, unit?: ISOUnitType): boolean
  16. isAfter(date?: ConfigType, unit?: ISOUnitType): boolean
  17. }
  18. }