time-convertor-ts

Convert time across timezones (typescript)
git clone http://git.hanabi.in/repos/time-convertor-ts.git
Log | Files | Refs | README | LICENSE

interfaces.tsx (1351B)


      1 import React from "react";
      2 
      3 export interface IDisplayTime {
      4   fmtStr: string;
      5   time: moment.Moment;
      6   timezone: string;
      7 }
      8 export interface IDualConvertor {
      9   setTZ1: React.Dispatch<React.SetStateAction<string>>;
     10   setTZ2: React.Dispatch<React.SetStateAction<string>>;
     11   time: moment.Moment;
     12   TZ1: string;
     13   TZ2: string;
     14 }
     15 
     16 export interface IFutureConversion {
     17   date: string;
     18   setDate: React.Dispatch<React.SetStateAction<string>>;
     19   setTime: React.Dispatch<React.SetStateAction<string>>;
     20   setTZ1: React.Dispatch<React.SetStateAction<string>>;
     21   setTZ2: React.Dispatch<React.SetStateAction<string>>;
     22   time: string;
     23   TZ1: string;
     24   TZ2: string;
     25 }
     26 export interface IFutureConverted {
     27   selectedTime: moment.Moment;
     28   TZ1: string;
     29   TZ2: string;
     30 }
     31 
     32 export interface IGetAbbr {
     33   time: moment.Moment;
     34   timezone: string;
     35 }
     36 
     37 export interface IMoment {
     38   time: moment.Moment;
     39 }
     40 
     41 export interface IShowSavedTimezones {
     42   savedZones: string[];
     43   time: moment.Moment;
     44 }
     45 
     46 export interface ISimpleConvertor {
     47   setTZ1: React.Dispatch<React.SetStateAction<string>>;
     48   time: moment.Moment;
     49   TZ1: string;
     50 }
     51 
     52 export interface ITimezoneInput {
     53   autofocus: boolean;
     54   changeValue: React.Dispatch<React.SetStateAction<string>>;
     55   clearInput?: React.Dispatch<React.SetStateAction<moment.Moment | undefined>>;
     56   id: string;
     57   placeholder: string;
     58   TZ: string;
     59 }