quarterOfYear.d.ts 607 B

1234567891011121314151617181920212223242526
  1. import { PluginFunc, ConfigType, QUnitType, OpUnitType } from 'dayjs'
  2. declare const plugin: PluginFunc
  3. export = plugin
  4. declare module 'dayjs' {
  5. interface Dayjs {
  6. quarter(): number
  7. quarter(quarter: number): Dayjs
  8. add(value: number, unit: QUnitType): Dayjs
  9. subtract(value: number, unit: QUnitType): Dayjs
  10. startOf(unit: QUnitType | OpUnitType): Dayjs
  11. endOf(unit: QUnitType | OpUnitType): Dayjs
  12. isSame(date?: ConfigType, unit?: QUnitType): boolean
  13. isBefore(date?: ConfigType, unit?: QUnitType): boolean
  14. isAfter(date?: ConfigType, unit?: QUnitType): boolean
  15. }
  16. }