You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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')accessorbar;
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?
The text was updated successfully, but these errors were encountered: