I don't know what's wrong with this, but it requires me to use @ApiPropertyOptional, even If I use it, it still gives me an error
@ApiPropertyOptional()
@ApiProperty({ description: 'If it is an event, use dateFrom and dateTo' })
@IsOptional()
@IsDate()
dateFrom?: Date;
@ApiPropertyOptional({})
@IsOptional()
@ApiProperty({ description: 'If it is an event, use dateFrom and dateTo' })
dateTo?: Date;
ESLint: Property marked as optional should use @ApiPropertyOptional decorator(@darraghor/nestjs-typed/api-property-matches-property-optionality
I don't know what's wrong with this, but it requires me to use @ApiPropertyOptional, even If I use it, it still gives me an error
ESLint: Property marked as optional should use @ApiPropertyOptional decorator(@darraghor/nestjs-typed/api-property-matches-property-optionality