Closed drwsmth closed 2 years ago
I believe this change would detract from the goal of this example, which is to handle the getter/setter separately, while also handling it as an attr. @keithamus is @attr
needed on the setter to make this work properly? If so, I'm curious how we should handle the typescript error
The current example throws error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name.
I suggest updating documentation inline with advice from TS dev @mhegazy; see https://github.com/microsoft/TypeScript/issues/2249#issuecomment-141710417