utils.d.ts 492 B

123456789101112131415161718
  1. export interface TimeData {
  2. days: number;
  3. hours: number;
  4. minutes: number;
  5. seconds: number;
  6. milliseconds: number;
  7. }
  8. export declare const parseTimeData: (time: number) => TimeData;
  9. export declare const isSameSecond: (time1: number, time2: number) => boolean;
  10. export declare type TTimeList = {
  11. digit: string;
  12. unit: string;
  13. match: string;
  14. }[];
  15. export declare const parseFormat: (time: number, format: string) => {
  16. timeText: string;
  17. timeList: TTimeList;
  18. };