Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Hover information for type signatures with callbacks is incorrect #413

Closed
@danr

Description

@danr

const declaration = ts.displayPartsToString(info.displayParts).replace(/^\(.+\)\s+/, '')

This should be a non-greedy +, as in \(.+?\).
Consider the string

(local function) act(handle: () => void): void

Right now this is incorrectly chopped to

 => void): void

instead of the correct

act(handle: () => void): void

HTH

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