@darraghor/nestjs-typed/validated-non-primitive-property-needs-type-decorator does not understand that types of primitive array | null does not need a @Type decorator
Example
class GetUserReq {
@IsString({each: true})
emails: string[] | null
}
Linter would tell us we need to have a Type decorator when we do not need it. The error disappears when i remove the union with null
Problem
@darraghor/nestjs-typed/validated-non-primitive-property-needs-type-decorator does not understand that types of
primitive array | null
does not need a @Type decoratorExample
Linter would tell us we need to have a
Type
decorator when we do not need it. The error disappears when i remove the union withnull