fix: registerDecorator askes for ValidatorOptions instead of ValidationOptions #302
Labels
status: done/released
Issue has been completed, no further action is needed.
type: fix
Issues describing a broken feature.
Hi,
In the example of custom validation decorator https://github.com/typestack/class-validator#custom-validation-decorators I can see a
options
object with typeValidationOptions
is passed toregisterDecorator
:But in https://github.com/typestack/class-validator/blob/master/src/register-decorator.ts, the
options
field is of typeValidatorOptions
(line 36).Is that a mistake? Sorry if this has been asked before.
The text was updated successfully, but these errors were encountered: