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

Add a test for assert.any([...], ...) #105

Closed
szmarczak opened this issue Feb 23, 2020 · 1 comment
Closed

Add a test for assert.any([...], ...) #105

szmarczak opened this issue Feb 23, 2020 · 1 comment

Comments

@szmarczak
Copy link

Given

assert.any([is.boolean, is.undefined], options.decompress);

TypeScript throws:

Argument of type '(((value: unknown) => value is boolean) | ((value: unknown) => value is undefined))[]' is not assignable to parameter of type 'Predicate'.
  Type '(((value: unknown) => value is boolean) | ((value: unknown) => value is undefined))[]' provides no match for the signature '(value: unknown): boolean'.
@szmarczak
Copy link
Author

lol I forgot to update to the newest version 🤦‍♂️

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