Title: signature help of tagged template doesn't show instantiated signature · Issue #23716 · microsoft/TypeScript · GitHub
Open Graph Title: signature help of tagged template doesn't show instantiated signature · Issue #23716 · microsoft/TypeScript
X Title: signature help of tagged template doesn't show instantiated signature · Issue #23716 · microsoft/TypeScript
Description: TypeScript Version: 2.9.0-dev.20180426 Search Terms: Code declare function tag
Open Graph Description: TypeScript Version: 2.9.0-dev.20180426 Search Terms: Code declare function tag
X Description: 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...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/23716
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"signature help of tagged template doesn't show instantiated signature","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 -->\r\n\u003c!--\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n * Read the CONTRIBUTING guidelines: https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md\r\n * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n-->\r\n\r\n\u003c!-- If you have a QUESTION:\r\n THIS IS NOT A FORUM FOR QUESTIONS.\r\n Ask questions at http://stackoverflow.com/questions/tagged/typescript\r\n or https://gitter.im/Microsoft/TypeScript\r\n-->\r\n\r\n\u003c!-- If you have a SUGGESTION:\r\n Most suggestion reports are duplicates, please search extra hard before logging a new suggestion.\r\n See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md\r\n-->\r\n\r\n\u003c!-- If you have a BUG:\r\n Please fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:** 2.9.0-dev.20180426\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** \r\n\r\n**Code**\r\n\r\n```ts\r\ndeclare function tag\u003cT>(string: TemplateStringsArray, ...values: T[]): void;\r\n\r\ntag``;\r\ntag`${1}`;\r\ntag\u003cnumber>``;\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nthe following signature help when hovering over `tag`:\r\n\r\n* `function tag\u003c{}>(string: TemplateStringsArray, ...values: {}[]): void`\r\n* `function tag\u003cnumber>(string: TemplateStringsArray, ...values: number[]): void`\r\n* `function tag\u003cnumber>(string: TemplateStringsArray, ...values: number[]): void`\r\n\r\n**Actual behavior:**\r\n\r\nSignature help shows `function tag\u003cT>(string: TemplateStringsArray, ...values: T[]): void` in all cases.\r\n\r\nSignature help works as expected when calling `tag` directly using a CallExpression.\r\n\r\n**Playground Link:** https://agentcooper.github.io/typescript-play/#code/CYUwxgNghgTiAEAzArgOzAFwJYHtXwygHMAeAFQD4AKAZwxi1SIC54yQBbAB2gxAGV6jIjQCCMGFACeAGngA6RQDcoEZCBqsyAbQC6ASlZKcWYAG4AUBcJEABrcs3bAEgDeARgC+D68RKpkDgAjEBgKezMgA\r\n\r\n**Related Issues:**\r\n#22873 same issue for JSX elements\r\n#23492 PR for JSX elements","author":{"url":"https://github.com/ajafff","@type":"Person","name":"ajafff"},"datePublished":"2018-04-26T18:55:22Z","url":"https://github.com/microsoft/TypeScript/issues/23716"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c8a9112f-6831-2f31-fde1-261e7c384778 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E50:2463BD:103766C:14DA980:6B01039F |
| html-safe-nonce | e79365e787fec3e382adfd4882ebbf9a01952edbf1b2beddae9f9d7e7dc88b8e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTUwOjI0NjNCRDoxMDM3NjZDOjE0REE5ODA6NkIwMTAzOUYiLCJ2aXNpdG9yX2lkIjoiODk1OTk1ODYxOTE4OTc0MDQ0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6733655d0713783ca7f9212114f65bef60e1101768fa6c92421651848f3cea27 |
| hovercard-subject-tag | issue:318155984 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/23716/issue_layout |
| twitter:image | https://opengraph.githubassets.com/18defc233e3f145361f70558f285e9dccc95644d76029edba6e0282c8d311452/microsoft/TypeScript/issues/23716 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/18defc233e3f145361f70558f285e9dccc95644d76029edba6e0282c8d311452/microsoft/TypeScript/issues/23716 |
| og:image:alt | TypeScript Version: 2.9.0-dev.20180426 Search Terms: Code declare function tag |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ajafff |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width