jamesplease / moment-business

Utilities for work days in Moment. (Western workweeks only.)
MIT License
100 stars 27 forks source link

Moment Timezone support #53

Closed zhangxin511 closed 7 years ago

zhangxin511 commented 7 years ago

When I try to use this with moment timezone in typescript, it looks like both timezone and business have definition to the Moment but they can't convert to each other.

zhangxin511 commented 7 years ago

I think this related to an outdated type @wonbyte created. Specifically, I was only using "moment-timezone": "0.5.11", "@types/moment-timezone": "0.2.34" for my angular2 app using typescript. And now when I add "moment-business":"3.0.1" and "@types/moment-business":"0.1.1" it giving all kinds of unmatched Moment error. But after I remove "@types/moment-business":"0.1.1" I can use the package without error, only without typing.