You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all let me state that I am on the javascript side of source code, leveraging TS language service via VS Code and npm-ramda 0.25 over TS 2.6.1. Enjoying all of that, thank you for your great work.
This issue describes a situation for takeLast where takeLast is essentially curried before map by the usage of
map(takeLast(1),[[true,false],[true,false]])
Gives Types of parameters 'xs' and 'x' are incompatible. on my side. Venturing into npm-ramda index.d.ts i compared it's signature to that of take. Difference is the ordering of the ?overloaded last parameter?. Which i switched to
Please note that i neither have an idea of why the change in ordering did have the right effect. Nor if that change is just a works-for-me.
Was determined to give that thing a share-back via pull request till i found that i have NO clue of what to change where (including testing) on your side of things, owing to my suboptimal level of understanding of typescript and even much less about the whereabouts of maintaining a typed definition for a functional JS library.
Last but not least take mercy on me if i did mix up terms describing this issue.
The text was updated successfully, but these errors were encountered:
Sorry, might got totally lost. But why is the header doc of @types/ramda/index.d.ts declaring https://github.com/donnut/typescript-ramda which finally takes me to this fine site?!?!
It seems you're using the types from DefinitelyTyped, which is a fork from this repo and maintained by DT these days, and we're trying to get sync with it (#191).
If you'd like to use types from this repo, you have to follow the steps from README.
First of all let me state that I am on the javascript side of source code, leveraging TS language service via VS Code and npm-ramda
0.25
over TS2.6.1
. Enjoying all of that, thank you for your great work.This issue describes a situation for
takeLast
wheretakeLast
is essentially curried beforemap
by the usage ofGives
Types of parameters 'xs' and 'x' are incompatible.
on my side. Venturing into npm-ramdaindex.d.ts
i compared it's signature to that oftake
. Difference is the ordering of the ?overloaded last parameter?. Which i switched toPlease note that i neither have an idea of why the change in ordering did have the right effect. Nor if that change is just a
works-for-me
.Was determined to give that thing a share-back via pull request till i found that i have NO clue of what to change where (including testing) on your side of things, owing to my suboptimal level of understanding of typescript and even much less about the whereabouts of maintaining a typed definition for a functional JS library.
Last but not least take mercy on me if i did mix up terms describing this issue.
The text was updated successfully, but these errors were encountered: