I can't use class-validator because of typescript bug
import { isNotEmpty } from 'class-validator'
export class GetTokenDto {
@isNotEmpty() code: string;
}
and the compile error is:
error TS1240: Unable to resolve signature of property decorator when called as an expression.
This expression is not callable.
Type 'Boolean' has no call signatures.
4 @isnotempty() code: string;
I can't use class-validator because of typescript bug
and the compile error is: