Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomProperty validate function type should allow for returning 'undefined' or 'void' #343

Open
noisypants opened this issue Jun 9, 2021 · 0 comments

Comments

@noisypants
Copy link

Hello.
I'm trying to use CustomProperty in a typescript application. The index.d.ts file seems to be missing undefined or null from the return type of the validator function? Makes it difficult to write a custom validator in typescript without that, as it keeps complaining that the function i write can't be assigned to a CustomProperty.

I am going to see if i can workaround this issue in the meantime. maybe through disabling a lint config?

image

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant