Replies: 6 comments 3 replies
-
sure, I try to improve @types/ramda if possible. In this particular case, I'd say that we should use |
Beta Was this translation helpful? Give feedback.
-
I try to make it work, but I couldn't in a way that is easy to understand what the actual use case is. |
Beta Was this translation helpful? Give feedback.
-
Thanks for response, but I will need also what is inside |
Beta Was this translation helpful? Give feedback.
-
I mean typing test. Also, if we have actual logic inside |
Beta Was this translation helpful? Give feedback.
-
Thanks, that helps me. Let me try changing the types and I will get back to you. |
Beta Was this translation helpful? Give feedback.
-
Sorry, but I need more definite example of I changed definitions to
and then indeed your example works. My issue is this:
for me this part is important:
Regarding TS definitions of Rambda - now that I read some really detailed learning sources, I realize that there are corner-cases that most people don't realize. Because of that, I will be doing the opposite - I want |
Beta Was this translation helpful? Give feedback.
-
For example, groupBy can be made more precise to indicate that every element is a non-empty array:
before:
after:
This matches the runtime behavior and allows easy usage with functions that require non-empty array inputs.
Beta Was this translation helpful? Give feedback.
All reactions