Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

signature help of tagged template doesn't show instantiated signature #23716

Copy link
Copy link
@ajafff

Description

@ajafff
Issue body actions

TypeScript Version: 2.9.0-dev.20180426

Search Terms:

Code

declare function tag<T>(string: TemplateStringsArray, ...values: T[]): void;

tag``;
tag`${1}`;
tag<number>``;

Expected behavior:

the following signature help when hovering over tag:

  • function tag<{}>(string: TemplateStringsArray, ...values: {}[]): void
  • function tag<number>(string: TemplateStringsArray, ...values: number[]): void
  • function tag<number>(string: TemplateStringsArray, ...values: number[]): void

Actual behavior:

Signature help shows function tag<T>(string: TemplateStringsArray, ...values: T[]): void in all cases.

Signature help works as expected when calling tag directly using a CallExpression.

Playground Link: https://agentcooper.github.io/typescript-play/#code/CYUwxgNghgTiAEAzArgOzAFwJYHtXwygHMAeAFQD4AKAZwxi1SIC54yQBbAB2gxAGV6jIjQCCMGFACeAGngA6RQDcoEZCBqsyAbQC6ASlZKcWYAG4AUBcJEABrcs3bAEgDeARgC+D68RKpkDgAjEBgKezMgA

Related Issues:
#22873 same issue for JSX elements
#23492 PR for JSX elements

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Quick Infoe.g. hover text, tool-tips, and tooltips.e.g. hover text, tool-tips, and tooltips.FixedA PR has been merged for this issueA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.