-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Typings for find don't include undefined #3969
Comments
cartant
added a commit
to cartant/rxjs
that referenced
this issue
Jul 28, 2018
cartant
added a commit
to cartant/rxjs
that referenced
this issue
Jul 29, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
Current Behavior
The overload signatures for
find
don't reflect the operator's behaviour.The return types are
OperatorFunction<T, S>
andMonoTypeOperatorFunction<T>
.However, the operator will emit
undefined
if no match is found. See this test.Possible Solution
The return types should be
OperatorFunction<T, S | undefined>
andOperatorFunction<T, T | undefined>
.The text was updated successfully, but these errors were encountered: