IsRgbColor(Defined in: node_modules/.pnpm/class-validator@0.14.4/node_modules/class-validator/types/decorator/string/IsRgbColor.d.ts:14 Check if the string is a rgb or rgba color.includePercentValues?,validationOptions?):PropertyDecorator
includePercentValues defaults to true. If you don’t want to allow to set rgb or rgba values with percents, like rgb(5%,5%,5%), or rgba(90%,90%,90%,.3), then set it to false.
If given value is not a string, then it returns false.
Parameters
includePercentValues?
boolean
validationOptions?
ValidationOptions
Returns
PropertyDecorator