Skip to content

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

Closed
@ajafff

Description

@ajafff

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

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions