Skip to content

Commit 4056f3e

Browse files
NickKelly1NoNameProvided
authored andcommitted
update readme
1 parent 0653966 commit 4056f3e

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
@@ -371,7 +371,7 @@ export class Post {
371371

372372
## Inheriting Validation decorators
373373

374-
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 from both its own class and the base class.
374+
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 from both its own class 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.
375375

376376
```typescript
377377
import { validate } from 'class-validator';

0 commit comments

Comments
 (0)