-
Notifications
You must be signed in to change notification settings - Fork 840
Closed
Labels
Description
I was trying to...
class Config {
@IsPort()
port: number;
}
const c = new Config();
c.port = 3000;
console.log(validateSync(c)) // error occurredThe problem:
validateSync returns an error in the above snippet.
The error doesn't appear when port type is string.
Is this behavior intended?
| return typeof value === 'string' && isPortValidator(value); |