reflect-metadata icon indicating copy to clipboard operation
reflect-metadata copied to clipboard

Is there a way to get all metadata defined for a key, but not a specific target?

Open atrauzzi opened this issue 7 years ago • 1 comments

Seems like it would make sense to offer something that can do this. Reflect is already tracking the data of keys to types for data.

atrauzzi avatar Jun 03 '17 03:06 atrauzzi

AFAIK this is not possible because internally, a WeakMap is used and indexed by target. WeakMaps can not be iterated over.

Yogu avatar Jun 09 '17 15:06 Yogu