What is reflect-metadata in typescript

TypescriptReflect Metadata

Typescript Problem Overview


what are reflect-metadata and its purpose?

What is syntax and purpose of using reflect-metadata?

Can some one provide the example for better understanding of the same?

How can be the reflect metadata helpful in implementing decorators in typescript.

Typescript Solutions


Solution 1 - Typescript

reflect-metadata Allows you to do runtime reflection on types.

The native (non reflect-metadata) version of type inference is much poorer than reflect-metadata and consists only of typeof and instanceof.

More

This blog post covers its features well : http://blog.wolksoftware.com/decorators-metadata-reflection-in-typescript-from-novice-to-expert-part-4

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMantu NigamView Question on Stackoverflow
Solution 1 - TypescriptbasaratView Answer on Stackoverflow