What is reflection metadata in typescript

What is reflection metadata and its purpose?

What is the syntax and purpose of using reflection metadata?

Can someone provide an example for a better understanding of the same?

How reflection metadata can be useful when implementing decorators in typescript.

+4
source share
1 answer

reflect-metadata Allows you to display runtime by type.

The native (non-reflecting metadata) version of type inference is much worse than reflect-metadatait consists of typeofand only instanceof.

More details

Its features are well described on this blog: http://blog.wolksoftware.com/decorators-metadata-reflection-in-typescript-from-novice-to-expert-part-4

+2

Source: https://habr.com/ru/post/1681582/


All Articles