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
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!
publicmap<N>(fn: (data: N)=>N): Parallel<T>
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: