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: declare that of returns arrays of length 1 #1901

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

levino
Copy link

@levino levino commented Aug 10, 2023

Sorry for not creating an issue first, but the test I added failed before and I fixed it, so it is pretty obvious what this is about. I ran npm test locally and it passed, I think. I committed the updated docs as well.

@levino levino marked this pull request as ready for review August 10, 2023 22:56
@@ -9,6 +9,8 @@ declare const ns: Array<number>
declare const ss: Array<string>
declare const tns: Array<[number, string]>

pipe(_.of('b'), ([value]: [string]) => value)
Copy link
Author

@levino levino Aug 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This created a TS error before below fixes.

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.

1 participant