You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export class Filter {
@IsEnum(FilterType)
id: FilterType
@IsString()
/* This is not getting executed. **/
@Transform(({ obj }) => LabelGenerator.getfilterTypeLabel(obj.id), { toClassOnly: true })
label: string;
@IsEnum(FilterSelectType)
select: FilterSelectType;
}
I am using a plain object: {id: 'Sample', select: 'multi'} to create the class.
In the above case, @Transform decorator is not getting executed, but if I put @expose() decorator on top of that, it works as expected. Is this the expected behavior?
The text was updated successfully, but these errors were encountered:
Say I have the following class definition:
I am using a plain object:
{id: 'Sample', select: 'multi'}
to create the class.In the above case, @Transform decorator is not getting executed, but if I put @expose() decorator on top of that, it works as expected. Is this the expected behavior?
The text was updated successfully, but these errors were encountered: