Skip to content

Commit 2f7b814

Browse files
committed
update readme
1 parent 166f530 commit 2f7b814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ export class Post {
368368

369369
## Inheriting Validation decorators
370370

371-
When you define a subclass which extends from another one, the subclass will automatically inherit the parent's decorators. If a property is redefined in the descendant class decorators will be applied on it both from that and the base class.
371+
When you define a subclass which extends from another one, the subclass will automatically inherit the parent's decorators. If a property is redefined in the descendant class decorators will be applied on it both from that and the base class. If a property-decorator pair is defined in both the sub-class and parent-class, the decorator from the sub-class will be used instead of the parent-class.
372372

373373
```typescript
374374
import { validate } from 'class-validator';

0 commit comments

Comments
 (0)