david-s (2) [Avatar] Offline
In MEAP-v4 I read in appendix B section B.10 the following about decorators:

"While decorators were introduced to TypeScript a couple of years ago,
since they a still in the proposal stage for ECMAScript, decorators are still considered an
experimental feature of the language, and you need to turn on the
experimentalDecorators option during code compilation."

I think you remain implicit about the relationship between decorators in the two languages and it confuses me. I think you mean to say that decorators exist in Typescript, and they are proposed in ECMAScript. In order to properly transpile them, you need to turn on experimental features in the Typescript transpiler, like this:
"experimentalDecorators": true in tsconfig.json.

Please rephrase / clarify this fragment in the book, maybe elaborate a little bit on consequences for running the transpiled javasacript in browsers?
Yakov Fain (215) [Avatar] Offline
Thank you. Updated the text as you suggested.