moment-timezone icon indicating copy to clipboard operation
moment-timezone copied to clipboard

TypeScript: moment and moment-timezone don't play well together

Open sfrooster opened this issue 8 years ago • 0 comments

Several things here:

  1. moment-timezone doesn't have TS support like moment does (I see this is a separate issue)
  2. current moment-timezone definitions don't include format()
  3. current moment-timezone definitions fail compilation (MomentTimeZoneFormat is not defined)
  4. momentTZ.tz() produces a Moment which is incompatible with moment() (Operator '<=' cannot be applied to types 'Moment' and 'Moment'.)

sfrooster avatar Aug 01 '16 03:08 sfrooster