utils.d.ts 768 B

1234567891011121314151617
  1. export declare const ROW_HEIGHT = 64;
  2. export declare function formatMonthTitle(date: Date): string;
  3. export declare function compareMonth(
  4. date1: Date | number,
  5. date2: Date | number
  6. ): 0 | 1 | -1;
  7. export declare function compareDay(
  8. day1: Date | number,
  9. day2: Date | number
  10. ): 0 | 1 | -1;
  11. export declare function getDayByOffset(date: Date, offset: number): Date;
  12. export declare function getPrevDay(date: Date): Date;
  13. export declare function getNextDay(date: Date): Date;
  14. export declare function calcDateNum(date: [Date, Date]): number;
  15. export declare function copyDates(dates: Date | Date[]): Date | Date[];
  16. export declare function getMonthEndDay(year: number, month: number): number;
  17. export declare function getMonths(minDate: number, maxDate: number): any[];