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

Is it possible to use such function: (data: N) => T as the parameter of the map method? #229

Open
zhengger opened this issue Aug 30, 2021 · 0 comments

Comments

@zhengger
Copy link

zhengger commented Aug 30, 2021

I'm using Typescript. The current map only accepts functions like : fn: (data: N) => N. But in practice, I need to feed the map with function like : (data: N) => T. T is not the same type as N. Could you tell me how to do it?
Thank you so much!

public map<N>(fn: (data: N) => N): Parallel<T> 
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