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

object check fails when using OR #11

Closed
danday74 opened this issue Feb 9, 2018 · 0 comments
Closed

object check fails when using OR #11

danday74 opened this issue Feb 9, 2018 · 0 comments

Comments

@danday74
Copy link

danday74 commented Feb 9, 2018

typeCheck('[Object]', [{}]); // true

typeCheck('String | [String] | [Object]', [{}]); // false

Obviously the second result is wrong.

This lib so simple to use, shame its not maintained ATM. If you dont have time to work on these issues maybe you could seek maintainers to help you. Its a great lib. Thanks

@gkz gkz closed this as completed in 6a2c33c Apr 3, 2020
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