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

Fix TypeScript definition #41

Merged
merged 6 commits into from
Nov 3, 2021
Merged

Conversation

Richienb
Copy link
Contributor

@Richienb Richienb commented Oct 14, 2021

I discovered that the TypeScript definition claims that arguments are being directly reflected in the filter method where in reality, the method is actually being passed either the first argument alone or an array of arguments when multiArgs === true. I have fixed the definitions to reflect the true values.

@sindresorhus
Copy link
Owner

Do you intent to work on a fix or should we just merge the test commented out for now?

Signed-off-by: Richie Bendall <richiebendall@gmail.com>
@Richienb Richienb changed the title TypeScript typings bug Pass all arguments to filter method Nov 3, 2021
@Richienb Richienb changed the title Pass all arguments to filter method Reflect all arguments to the filter method Nov 3, 2021
@Richienb Richienb changed the title Reflect all arguments to the filter method Fix TypeScript definition Nov 3, 2021
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
@Richienb Richienb marked this pull request as ready for review November 3, 2021 13:56
@Richienb
Copy link
Contributor Author

Richienb commented Nov 3, 2021

Do you intent to work on a fix or should we just merge the test commented out for now?

@sindresorhus Fixed now

@sindresorhus sindresorhus merged commit b60edfe into sindresorhus:main Nov 3, 2021
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

Successfully merging this pull request may close these issues.

2 participants