租房小程序前端代码
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.

26 lines
607 B

3 months ago
  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. }