vue-dynamic-forms icon indicating copy to clipboard operation
vue-dynamic-forms copied to clipboard

Not all validators are set to ValidatorFn

Open OmgImAlexis opened this issue 4 years ago • 0 comments

Describe the bug Not all of the built in validators are set to ValidatorFn because of this I see errors in my editor.

To Reproduce Add this library and open VSCode.

Expected behavior Not to see these errors.

Screenshots Before. Screen Shot 2021-07-06 at 1 13 09 pm

After the suggested changes. Screen Shot 2021-07-06 at 1 13 50 pm

Info

  • Version 3.14.0

Additional context To fix this all the validators in https://github.com/asigloo/vue-dynamic-forms/blob/master/src/core/utils/validators.ts should have their return type set to ValidatorFn.

OmgImAlexis avatar Jul 06 '21 03:07 OmgImAlexis