InjectingPropsTransformer

Hierarchy

  • InjectingPropsTransformer

Implements

Index

Methods

Methods

canTransform

canTransform(type: Type): boolean

Evaluates whether transformation can be done on type.

Parameters:

NameTypeDescription
typeTypeEvaluated type to be transformed.

Returns: boolean

Returns true if type is instance of Class pattern that contains a type that has injectable properties metadata assigned, else false.


transform

transform(classType: Class): Class

Transforms class type by injecting additional properties in to type's existing properties.

Parameters:

NameTypeDescription
classTypeClassClass pattern instance as a type to be transformed.

Returns: Class

Instance of Class pattern as a type with injected properties.