In TS5 with legacy decorators off, how can I add properties to a class using a decorator such that the type system recognizes it?
Notably an example decorator from the proposal (https://github.com/tc39/proposal-decorators#classes) also fails:
https://www.typescriptlang.org/play?#code/GYVwdgxgLglg9mABAGzgczQUwCYAoBuAhsiJgFyKFgCeANIhAlJgB5QUDCyhAzjwCKZGAJ0JQ4wjk1ZQAlIgDeAKESJhmKCGFII3PohmYw2HoiIlMilaoYIeUYSGgTcAOneFhaHhSrUA2gC68so2NjwgAA6Ywm4eXjyyANzWYYxgPHDImK6oaLgABun2jtAwYGiUSOX2VBCWcMCIACQKYIQAtpgAvogA7jBQABaUXiBdYFCmrZ7ergBWcOW4AET0K7LdBcmpiN3W+9YA9EeI7q5KhwACeVjYSrq8phyKh2CYfYgcuACMyUA