Skip to content

Fix typing of the Observable<boolean> #168

@brianmhunt

Description

@brianmhunt

See:

// Broken
function observable<T>(value: T): Observable<T>
{
  return undefined as any;  // the implementation is not important
}

// Fixed
function observable<T>(value: T extends infer U ? U: never): Observable<T>
{
  return undefined as any;  // the implementation is not important
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions