Skip to content

Incorrect Intellisense description for forkJoin #7100

@davimiku

Description

@davimiku

Describe the bug

In the example code below, the hover definition for forkJoin displays a description about the any type, even when the any type is not used.

You have passed any here, we can't figure out if it is an array or an object, so you're getting unknown. Use better types.

In the example below, TypeScript inferred a tuple type [number, number].

image

Expected behavior

Hover definition for forkJoin displays the main/standard documentation definition for forkJoin.

Reproduction code

import { forkJoin, of } from 'rxjs'

forkJoin([of(1), of(2)])

Reproduction URL

No response

Version

7.5.7

Environment

Visual Studio Code (latest version - v1.7.2)
TypeScript bundled with VS Code (v4.8.4)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions