René's URL Explorer Experiment


Title: In JS, `@template` types on constructor functions do not resolve in prototype methods · Issue #26826 · microsoft/TypeScript · GitHub

Open Graph Title: In JS, `@template` types on constructor functions do not resolve in prototype methods · Issue #26826 · microsoft/TypeScript

X Title: In JS, `@template` types on constructor functions do not resolve in prototype methods · Issue #26826 · microsoft/TypeScript

Description: var Multimap = function() { /** @type {!Map.>} */ this._map = new Map(); }; /** * @param {K} key the key ok * @returns {Set} the value ok */ Multimap.prototype.get = function (key) { return this._map.get(key) || new Set()...

Open Graph Description: var Multimap = function() { /** @type {!Map.>} */ this._map = new Map(); }; /** * @param {K} key the key ok * @returns {Set} the value ok */ Multimap.prototype.get = function (key) ...

X Description: var Multimap = function() { /** @type {!Map.<K, !Set.<!V>>} */ this._map = new Map(); }; /** * @param {K} key the key ok * @returns {Set<V>} the value ok */ Multimap.prototype.get...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/26826

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"In JS, `@template` types on constructor functions do not resolve in prototype methods","articleBody":"```js\r\nvar Multimap = function() {\r\n  /** @type {!Map.\u003cK, !Set.\u003c!V>>} */\r\n  this._map = new Map();\r\n};\r\n\r\n/**\r\n * @param {K} key the key ok\r\n * @returns {Set\u003cV>} the value ok\r\n */\r\nMultimap.prototype.get = function (key) {\r\n    return this._map.get(key) || new Set();\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\nNo errors, and `Multimap\u003cK,V>.get: (key: K) => Set\u003cV>`\r\n\r\n**Actual behavior:**\r\nK and V in `@param {K}` and `@returns {Set\u003cV>}` are not found and `get: (key: any) => any`.\r\n\r\nWorks fine if Multimap is declared as `function Multimap ...`.\r\n\r\nShould work with prototype assignments too, eg `Multimap.prototype = { get() { ... } }`. Discovered while fixing #24230","author":{"url":"https://github.com/sandersn","@type":"Person","name":"sandersn"},"datePublished":"2018-08-31T21:01:03Z","url":"https://github.com/microsoft/TypeScript/issues/26826"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7a2a5de5-e3d7-5e2a-5b5b-008488c2f432
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBB92:FD77C:26DFF4:33AA3D:6B04B5A0
html-safe-nonceef0f8688b2e761fb6a6a521424e15448c692f9475b4467709d6672118b16091a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjkyOkZENzdDOjI2REZGNDozM0FBM0Q6NkIwNEI1QTAiLCJ2aXNpdG9yX2lkIjoiNjkzNzU4NjgwMTU4Njc3OTU1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb805fc3020e4c3b2cc7fa2aafeb327b79946bfa1c03c0b930f36bf1d4fcfc6bf
hovercard-subject-tagissue:356122490
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/26826/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c1a460f64a96fee2b81f388141e63c82081f8211367ce5314c94c1d5324af2d4/microsoft/TypeScript/issues/26826
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c1a460f64a96fee2b81f388141e63c82081f8211367ce5314c94c1d5324af2d4/microsoft/TypeScript/issues/26826
og:image:altvar Multimap = function() { /** @type {!Map.>} */ this._map = new Map(); }; /** * @param {K} key the key ok * @returns {Set} the value ok */ Multimap.prototype.get = function (key) ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesandersn
hostnamegithub.com
expected-hostnamegithub.com
None378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb032e77f1ea437ede6c115446a0a467709b468e7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/26826#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F26826
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F26826
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/26826
Reloadhttps://github.com/microsoft/TypeScript/issues/26826
Reloadhttps://github.com/microsoft/TypeScript/issues/26826
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests317 (317)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/26826
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/26826
#26830https://github.com/microsoft/TypeScript/pull/26830
In JS, @template types on constructor functions do not resolve in prototype methodshttps://github.com/microsoft/TypeScript/issues/26826#top
#26830https://github.com/microsoft/TypeScript/pull/26830
https://github.com/sandersn
Bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: JSDochttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20JSDoc%22
Fixedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 3.1https://github.com/microsoft/TypeScript/milestone/74
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Aug 31, 2018https://github.com/microsoft/TypeScript/issues/26826#issue-356122490
#24230https://github.com/microsoft/TypeScript/issues/24230
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Aug 31, 2018https://github.com/microsoft/TypeScript/issues/26826#event-1821481085
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Salsahttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Salsa%22
Domain: JSDochttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20JSDoc%22
on Aug 31, 2018https://github.com/microsoft/TypeScript/issues/26826#event-1821481395
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
TypeScript 3.1https://github.com/microsoft/TypeScript/milestone/74
on Aug 31, 2018https://github.com/microsoft/TypeScript/issues/26826#event-1821481475
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Aug 31, 2018https://github.com/microsoft/TypeScript/issues/26826#event-1821614864
check for expando initializers in resolveEntityNamehttps://github.com/microsoft/TypeScript/commit/4589db506d83b42ef44b5ffe81c578d6197562ba
https://docs.github.com/articles/closing-issues-via-commit-messages
4589db5https://github.com/microsoft/TypeScript/commit/4589db506d83b42ef44b5ffe81c578d6197562ba
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Fixedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Aug 31, 2018https://github.com/microsoft/TypeScript/issues/26826#event-1821634858
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#26830https://github.com/microsoft/TypeScript/pull/26830
on Sep 4, 2018https://github.com/microsoft/TypeScript/issues/26826#event-1826419041
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Sep 4, 2018https://github.com/microsoft/TypeScript/issues/26826#event-1826419726
Fixes for type parameter name resolution in JS (#26830)https://github.com/microsoft/TypeScript/commit/64ac5a53f4b8216fe49810a413487d167f987427
#26830https://github.com/microsoft/TypeScript/pull/26830
https://docs.github.com/articles/closing-issues-via-commit-messages
64ac5a5https://github.com/microsoft/TypeScript/commit/64ac5a53f4b8216fe49810a413487d167f987427
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/26826#event-20415787502
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/26826
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/26826
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: JSDochttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20JSDoc%22
Fixedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 3.1https://github.com/microsoft/TypeScript/milestone/74
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.