InjectingPropsTransformer
Hierarchy
- InjectingPropsTransformer
Implements
- TypeTransformer
- TypeTransformer
Index
Methods
Methods
canTransform
▸ canTransform(type
: Type): boolean
Evaluates whether transformation can be done on type.
Parameters:
Name | Type | Description |
---|---|---|
type | Type | Evaluated 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:
Name | Type | Description |
---|---|---|
classType | Class | Class pattern instance as a type to be transformed. |
Returns: Class
Instance of Class
pattern as a type with injected properties.