-
Notifications
You must be signed in to change notification settings - Fork 64
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
R.__ missing #120
Comments
I can take a PR for that. We hadn't managed to get it to play nice for type inference either though. For arity-2 functions, hopefully |
Sorry, checked into this again but I realize why donnut had taken this out. Even if you put in I can foresee a 'proper' solution -- handling every possible combination on the level of the As a temporary fix, I'm hesitating a bit about reverting donnut's removal considering how bad of an idea this might end up as. That said, having compilation errors show up due to inclusion of these typings would kind of suck, especially considering e.g. Ionic will just cancel your build (previously angular-cli did too). With that in mind, I'd like to relieve your pain here. It'll still be broken, though I suppose technically it might be considered slightly less broken than erroring as soon as you even invoke |
Tackling this properly requires proper handling of currying, see #122. This is not a proper fix, since it doesn't yet understand the placeholder. But right now the best we could do here is not error right away.
Hey,
The definition for
R.__
(http://ramdajs.com/docs/#__) is missing, is this intentional?I've tried merging the
Static
interface with a local definition but it doesn't want to play nice :(Update 1
After some more adventures I'm not sure what the type should be either. I modified the
index.d.ts
in mynode_modules/@types/ramda
to include__
like the following:But I then couldn't do
R.gt(R.__, 0)
asR.gt
is(a: number, b:number) => boolean
.This lead to me just defining
R.__
as justany
(not a function at all) in the interface.Update 2
const R__ = (R as any).__
works.The text was updated successfully, but these errors were encountered: