November 2019
Beginner
804 pages
20h 1m
English
Now that you understand why we need this library, let's install class-transformer. Install the dependency using npm install class-transformer --save.
Once again we're in luck: since class-transformer is written in TypeScript, its npm package includes type definitions so we don't need to install them separately.
You also need to install reflect-metadata (https://www.npmjs.com/package/reflect-metadata), which is a library that class-transformer requires to perform runtime reflection on types. You can learn more about it here: http://blog.wolksoftware.com/decorators-metadata-reflection-in-typescript-from-novice-to-expert-part-4. Install reflect-metadata using npm install reflect-metadata --save ...
Read now
Unlock full access