I have a class which have some decorator I want when extend this class it remove the decorator.
For example:
class User {
@IsNotEmpty()
username: string;
@IsNotEmpty()
name: string;
}
class UpdateUser extends User {
}
All decorator exist in UpdateUser class which I don't want.
Specifically I'm using class-validator I don't need IsNotEmpty decorator when updating.
Is there any way to remove the decorator when extending class?
Is there any way to replace decorator with other when extending class?