isoWeek.d.ts 609 B

123456789101112131415161718192021222324252627
  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. }