Skip to content

Quick info on JSX element should show inferred type arguments #28083

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

Open
ghost opened this issue Oct 23, 2018 · 1 comment
Open

Quick info on JSX element should show inferred type arguments #28083

ghost opened this issue Oct 23, 2018 · 1 comment
Labels
Bug A bug in TypeScript Domain: Quick Info e.g. hover text, tool-tips, and tooltips.
Milestone

Comments

@ghost
Copy link

ghost commented Oct 23, 2018

TypeScript Version: 3.2.0-dev.20181023

Search Terms:

Code

class C<T> extends React.Component<T> {}
const x = <C x={42} />;

Expected behavior:

Quick into at the use of C should show C<{ x: number }>.

Actual behavior:

Just shows class C<T>.

@ghost ghost added Bug A bug in TypeScript Domain: Quick Info e.g. hover text, tool-tips, and tooltips. labels Oct 23, 2018
@DanielRosenwasser
Copy link
Member

I think this would also fix #23716.

@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: Quick Info e.g. hover text, tool-tips, and tooltips.
Projects
None yet
Development

No branches or pull requests

2 participants