Object Initializer Constant Properties

Since you asked... Decorators were on the agenda for the TC39 meeting this week and this slide mentions what Decorators, in there current form, can and can not do.

They cannot :

  • Replace with a different type of value
  • Add, remove, or replace values other than the decorated value
2 Likes