Closed cuongnv-dev closed 1 year ago
@cuongnv-dev
Interfaces can not compute properties or use decorators, whereas classes can. NestJS recommends to use classes because you can add decorators from class-validator to properties such as @IsString() or @Max(20). With interfaces such a validation would only be possible outside of the interface context.
There are no channels or groups for discussion. However, if you have any questions, please leave an issue and we will answer them. thank you
thanks for clarifications
Summary (요약)