-
Notifications
You must be signed in to change notification settings - Fork 22
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
How to type curried functions #10
Comments
It is also worth noting that there are many places in They have there export function lt(__: Placeholder): (b: number, a: number) => boolean; This implies that |
Or should we forbid using placeholder when use ramda with ts? |
@adispring I read through that PR along with the links to the other discussions from there. I don't have a particularly strong opinion on the keep/no-keep argument. However, the fact of the matter is that placeholders are supported, and therefore need to be typed out The argument I made above was specifically for the use cases that don't really make sense to keep R.divide === R.divide() === R.divide(R.__); But I'm willing to bet that somewhere someone has implemented const toPercent = R.divide(R.__, 100); So removing |
ramda
's curry function is awesome but also has abilities that are not strictly necessary to typeThe use cases for both
R.divide()
andR.divide(R.__)
are however negligibleSo when typing out, we're only going to type it as:
And leave out
The text was updated successfully, but these errors were encountered: