When multiple instances extends from the same base class that has decorated properties. Children decorators 'pollutes' parent metadata. They were also attached to parent prototype.
Example:
following decorators use reflect-metadata to 'define' and 'get' metadata.
class Base {
@SomeDecorator
prop
}
class A extends Base {
@SomeDecorator
propA
}
class B extends Base {
@SomeDecorator
propB
}
This will result class B has three metadata, prop, propA and propB
When multiple instances extends from the same base class that has decorated properties. Children decorators 'pollutes' parent metadata. They were also attached to parent prototype.
Example:
following decorators use
reflect-metadatato 'define' and 'get' metadata.This will result
class Bhas three metadata,prop,propAandpropB