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

How should we type lift? #442

Open
robounohito opened this issue Aug 29, 2019 · 0 comments
Open

How should we type lift? #442

robounohito opened this issue Aug 29, 2019 · 0 comments

Comments

@robounohito
Copy link

robounohito commented Aug 29, 2019

Hi guys,

Can someone explain how lift typings suppose to work?

Even basic case not working:

const test = lift(add)(inc, dec)(2);

lift correctly infers arity 2 (<number, number, number>), but then it fails to typecheck with:

Argument of type 'inc_0' is not assignable to parameter of type 'List<number>'

For whatever reason it expects inc and dec to return List<number> instead of number.

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

No branches or pull requests

1 participant