Skip to Content
Learning TypeScript 2.x - Second Edition
book

Learning TypeScript 2.x - Second Edition

by Remo H. Jansen
April 2018
Beginner content levelBeginner
536 pages
13h 21m
English
Packt Publishing
Content preview from Learning TypeScript 2.x - Second Edition

Prerequisites

The TypeScript features in this chapter require TypeScript 1.5 or higher and the following options to be enabled in the tsconfig.json file:

"experimentalDecorators": true, 
"emitDecoratorMetadata": true 
As indicated by the experimental decorators compilation flag, the decorator's API is considered experimental. This doesn't mean that it is not ready for production usage. It means that the decorator API is subject to potential breaking changes in the future.

We are also going to need a polyfill for the reflectmetadata API. We need a polyfill because most JavaScript engines don't support this API yet. We can expect that, in the long term, this polyfill will not be required but, currently, we can use the reflect–metadata npm module: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering TypeScript - Fourth Edition

Mastering TypeScript - Fourth Edition

Nathan Rozentals
Learning TypeScript

Learning TypeScript

Josh Goldberg
TypeScript for Beginners

TypeScript for Beginners

Bharath Thippireddy

Publisher Resources

ISBN: 9781788391474Supplemental Content