InternalPropsTransformer
Hierarchy
- InternalPropsTransformer
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 internal properties metadata assigned, else false.
transform
▸ transform(classType: Class): Class
Transforms class type's internal properties by wrapping their values with Internal pattern.
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 internal
properties wrapped with Internal pattern.