René's URL Explorer Experiment


Title: JSDoc generated declaration omits constructor of child class · Issue #41397 · microsoft/TypeScript · GitHub

Open Graph Title: JSDoc generated declaration omits constructor of child class · Issue #41397 · microsoft/TypeScript

X Title: JSDoc generated declaration omits constructor of child class · Issue #41397 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - JSDoc generated declaration omits constructor of child class · Issue #41397 · microsoft/TypeScript

Open Graph Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - JSDoc generated declaration omits constructor of child class · Issue #41397 · microsoft/TypeScript

X Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - JSDoc generated declaration omits constructor of child class · Issue #41397 · microsoft/TypeScript

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JSDoc generated declaration omits constructor of child class","articleBody":"**TypeScript Version:**  4.1.1-rc\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** jsdoc declaration constructor super class\r\n\r\n**Code**\r\n\r\n```js\r\nexport class Super {\r\n  /**\r\n   * @param {string} firstArg\r\n   * @param {string} secondArg\r\n   */\r\n  constructor(firstArg, secondArg) {}\r\n}\r\n\r\nexport class Sub extends Super {\r\n  constructor() {\r\n    super('first', 'second');\r\n  }\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\nThe generated declaration is:\r\n\r\n```ts\r\nexport class Super {\r\n    /**\r\n     * @param {string} firstArg\r\n     * @param {string} secondArg\r\n     */\r\n    constructor(firstArg: string, secondArg: string);\r\n}\r\nexport class Sub extends Super {\r\n    constructor();\r\n}\r\n```\r\n\r\n**Actual behavior:**\r\n```ts\r\nexport class Super {\r\n    /**\r\n     * @param {string} firstArg\r\n     * @param {string} secondArg\r\n     */\r\n    constructor(firstArg: string, secondArg: string);\r\n}\r\nexport class Sub extends Super {\r\n}\r\n```\r\n\r\nThis causes problems when using `composite` projects, where the `.d.ts` files are used to perform compilations. When the `.d.ts` is used which omits the child constructor, the compilation will error with:\r\n\r\n```\r\nerror TS2554: Expected 2 arguments, but got 0.\r\n```\r\n\r\n**Playground Link:** https://www.typescriptlang.org/play?useJavaScript=true#code/KYDwDg9gTgLgBAYwDYEMDOa4GUCuZhRwDeAUHHAPQBUVZ5VcAAmClCgLbFoxQCWAdgHMAvnABmvKNwCCUQXTgNmrDlx4CRcNMAQR+AE1nzyiinV39uUHAhjQAFBKkwjAGi069huQEpiwkgCSUEhYRFQMbBwAIzhQGGADTFx8QlJyCysbOyh7P3STNDwCewByJ25S91LtC31SnwBuOgDhIA\r\n\r\n**Related Issues:** n/a\r\n","author":{"url":"https://github.com/TimvdLippe","@type":"Person","name":"TimvdLippe"},"datePublished":"2020-11-04T15:42:18Z","url":"https://github.com/microsoft/TypeScript/issues/41397"}

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/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:8d9f029a-7172-55c9-3a03-cc9bf1ac6f2c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA480:213839:2967897:34E9828:6B01972F
html-safe-noncedd222113e314b96e4be400593704c7396dd10fa64a4dc7be78ce582e0767a6ca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDgwOjIxMzgzOToyOTY3ODk3OjM0RTk4Mjg6NkIwMTk3MkYiLCJ2aXNpdG9yX2lkIjoiMjAyMTQ0MjI5Mzk4NjMzNDUxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac50a8f827d6b563bd3eefda0a53e8148f13192997918721e6e415d6d59d945d42
hovercard-subject-tagrepository:20929025
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/microsoft/TypeScript/issues/41397
twitter:imagehttps://opengraph.githubassets.com/47cde802d3847ff7ce61448bd4f8c3272d012c9a3f2b9085b71a67530bf7bbd6/microsoft/TypeScript
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/47cde802d3847ff7ce61448bd4f8c3272d012c9a3f2b9085b71a67530bf7bbd6/microsoft/TypeScript
og:image:altTypeScript is a superset of JavaScript that compiles to clean JavaScript output. - JSDoc generated declaration omits constructor of child class · Issue #41397 · microsoft/TypeScript
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/41397#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F41397
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%2F41397
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/41397
Reloadhttps://github.com/microsoft/TypeScript/issues/41397
Reloadhttps://github.com/microsoft/TypeScript/issues/41397
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/41397
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/41397
#41767https://github.com/microsoft/TypeScript/pull/41767
JSDoc generated declaration omits constructor of child classhttps://github.com/microsoft/TypeScript/issues/41397#top
#41767https://github.com/microsoft/TypeScript/pull/41767
https://github.com/weswigham
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
TypeScript 4.2.0https://github.com/microsoft/TypeScript/milestone/129
https://github.com/TimvdLippe
Tim van der Lippe (TimvdLippe)https://github.com/TimvdLippe
on Nov 4, 2020https://github.com/microsoft/TypeScript/issues/41397#issue-736216934
https://www.typescriptlang.org/play?useJavaScript=true#code/KYDwDg9gTgLgBAYwDYEMDOa4GUCuZhRwDeAUHHAPQBUVZ5VcAAmClCgLbFoxQCWAdgHMAvnABmvKNwCCUQXTgNmrDlx4CRcNMAQR+AE1nzyiinV39uUHAhjQAFBKkwjAGi069huQEpiwkgCSUEhYRFQMbBwAIzhQGGADTFx8QlJyCysbOyh7P3STNDwCewByJ25S91LtC31SnwBuOgDhIAhttps://www.typescriptlang.org/play?useJavaScript=true#code/KYDwDg9gTgLgBAYwDYEMDOa4GUCuZhRwDeAUHHAPQBUVZ5VcAAmClCgLbFoxQCWAdgHMAvnABmvKNwCCUQXTgNmrDlx4CRcNMAQR+AE1nzyiinV39uUHAhjQAFBKkwjAGi069huQEpiwkgCSUEhYRFQMbBwAIzhQGGADTFx8QlJyCysbOyh7P3STNDwCewByJ25S91LtC31SnwBuOgDhIA
devtools-bothttps://github.com/devtools-bot
on Nov 4, 2020https://github.com/microsoft/TypeScript/issues/41397#event-3958884220
Typecheck main/MainImpl.js with TypeScripthttps://github.com/ChromeDevTools/devtools-frontend/commit/1ad9adae48c8c94e744d3b258a4f3baaef0af620
1ad9adahttps://github.com/ChromeDevTools/devtools-frontend/commit/1ad9adae48c8c94e744d3b258a4f3baaef0af620
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Nov 12, 2020https://github.com/microsoft/TypeScript/issues/41397#event-3990906455
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Wesley Wigham (weswigham)https://github.com/weswigham
on Nov 12, 2020https://github.com/microsoft/TypeScript/issues/41397#event-3990906541
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 4.2.0https://github.com/microsoft/TypeScript/milestone/129
on Nov 12, 2020https://github.com/microsoft/TypeScript/issues/41397#event-3990906744
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
on Dec 1, 2020https://github.com/microsoft/TypeScript/issues/41397#event-4059570953
Wesley Wigham (weswigham)https://github.com/weswigham
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#41767https://github.com/microsoft/TypeScript/pull/41767
on Dec 2, 2020https://github.com/microsoft/TypeScript/issues/41397#event-4064468427
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/41397#event-20417058623
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/41397
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/41397
Wesley Wigham (weswigham)https://github.com/weswigham
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
TypeScript 4.2.0https://github.com/microsoft/TypeScript/milestone/129
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

Viewport: width=device-width


URLs of crawlers that visited me.