Skip to content

Typings for find don't include undefined #3969

@cartant

Description

@cartant
Collaborator

Bug Report

Current Behavior

The overload signatures for find don't reflect the operator's behaviour.

The return types are OperatorFunction<T, S> and MonoTypeOperatorFunction<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> and OperatorFunction<T, T | undefined>.

Activity

added 2 commits that reference this issue on Jul 28, 2018
e44ade0
a227ed5
locked as resolved and limited conversation to collaborators on Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @cartant

      Issue actions

        Typings for find don't include undefined · Issue #3969 · ReactiveX/rxjs