Closed kat3su closed 7 years ago
Get accessors only will create readonly annotation when compiled with typescript 2.0 and doesn't work well with typescript 1.8
So I added Set accessors as well to avoid the readonly tag.
You can possibly get rid of the get accessors all together as I coudln't see it being used anywhere. But instead, use function. Eg
public getCurrentYear() {} public getCurrentMonth() {} public getCurrentDay() {] public today() {}
Issue #24
@Krisa could your review this?
I think it's better to remove getter and setter by changing getters to a function instead.
Get accessors only will create readonly annotation when compiled with typescript 2.0 and doesn't work well with typescript 1.8
So I added Set accessors as well to avoid the readonly tag.
You can possibly get rid of the get accessors all together as I coudln't see it being used anywhere. But instead, use function. Eg