Open lukemelia opened 3 years ago
I'm open to ideas here, I don't really use these decorators that much myself these days. They can be useful, but I also think that they're not going to really match up well with the current direction of the decorators spec. You would have to do:
@alias('foo') accessor bar;
The accessor
keyword will be necessary for converting a field into a getter/setter. In some cases, this could possibly still be worth it for terseness, but I don't think it would be in many simple cases like aliasing.
I love this library for working in JS but am not sure how it should be used in Typescript. In other words, how do we type the properties defined via these decorators?