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

ReaderObservable.chainTaskK type signature #64

Open
lingard opened this issue Jul 21, 2021 · 1 comment · May be fixed by #65
Open

ReaderObservable.chainTaskK type signature #64

lingard opened this issue Jul 21, 2021 · 1 comment · May be fixed by #65

Comments

@lingard
Copy link

lingard commented Jul 21, 2021

export const chainTaskK = <A, B>(
f: (a: A) => Observable<B>
): (<R>(ma: ReaderObservable<R, A>) => ReaderObservable<R, B>) => chain(a => fromObservableK(f)(a))

Is the type signature of this function correct? I would expect the function passed to chainTaskK to return a Task not an Observable.

@lingard lingard changed the title ReaderObservable chainTaskK ReaderObservable.chainTaskK type signature Jul 21, 2021
@mlegenhausen
Copy link
Collaborator

mlegenhausen commented Jul 21, 2021

Totally right, or this should be renamed to chainObservableK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants