Skip to content
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

incorrect signature help for JsxOpeningLikeElement with typeArguments #22873

Closed
ajafff opened this issue Mar 26, 2018 · 0 comments
Closed

incorrect signature help for JsxOpeningLikeElement with typeArguments #22873

ajafff opened this issue Mar 26, 2018 · 0 comments
Assignees
Labels
Bug A bug in TypeScript Domain: JSX/TSX Relates to the JSX parser and emitter Fixed A PR has been merged for this issue

Comments

@ajafff
Copy link
Contributor

ajafff commented Mar 26, 2018

TypeScript Version: 2.9.0-dev.20180328

Search Terms: jsx generic type arguments

Code

export {};

declare namespace JSX {
    interface Element {
        render(): Element | string | false;
    }
}

function SFC<T>(props: Record<string, T>) {
    return '';
}

/*1*/<SFC/>;
/*2*/<SFC<string>/>;

Expected behavior:

1: function SFC<{}>(props: Record<string, {}>): string
2: function SFC<string>(props: Record<string, string>): string

Actual behavior:

1: function SFC<{}>(props: Record<string, {}>): string
2: function SFC<{}>(props: Record<string, {}>): string

Playground Link:

Related Issues:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Domain: JSX/TSX Relates to the JSX parser and emitter Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

3 participants