InternalPropsTransformer

Hierarchy

  • InternalPropsTransformer

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 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:

NameTypeDescription
classTypeClassClass pattern instance as a type to be transformed.

Returns: Class

Instance of Class pattern as a type with internal properties wrapped with Internal pattern.