StaticaddApplies a list of validators to a ts-morph property declaration.
The property declaration to modify.
The list of internal validation rules to apply.
StaticcollectCollects all unique decorator names required by the validators. Useful for generating the import statement at the top of the file.
The list of validators to analyze.
An array of unique decorator names (e.g., ['IsString', 'IsOptional']).
Helper class to manage
class-validatordecorators on class properties. It maps internal validation rules (IR) to specific TypeScript decorators.