date.d.ts 621 B

123456789101112131415161718192021
  1. export declare type CompareDate = Date | number | {
  2. year: number;
  3. month: number;
  4. date: number;
  5. };
  6. export declare const getDateRect: (date: Date | number) => {
  7. year: number;
  8. month: number;
  9. date: number;
  10. day: number;
  11. time: number;
  12. };
  13. export declare const isSameDate: (date1: CompareDate, date2: CompareDate) => boolean;
  14. export declare const getMonthDateRect: (date: Date | number) => {
  15. year: number;
  16. month: number;
  17. weekdayOfFirstDay: number;
  18. lastDate: number;
  19. };
  20. export declare const isValidDate: (val: any) => boolean;
  21. export declare const getDate: (...args: any[]) => any;