The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

david-s (2) [Avatar] Offline
#1
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 (219) [Avatar] Offline
#2
Thank you. Updated the text as you suggested.