René's URL Explorer Experiment


Title: Preserve JSDocs in *.d.ts files when stripping comments · Issue #14619 · microsoft/TypeScript · GitHub

Open Graph Title: Preserve JSDocs in *.d.ts files when stripping comments · Issue #14619 · microsoft/TypeScript

X Title: Preserve JSDocs in *.d.ts files when stripping comments · Issue #14619 · microsoft/TypeScript

Description: Suggestion/Feature When using the switch removeComments it will strip out all comments including the ones you may consider useful to the end consumer such as JSDocs. I'd like to strip out any internal comments but preserve any JSDocs com...

Open Graph Description: Suggestion/Feature When using the switch removeComments it will strip out all comments including the ones you may consider useful to the end consumer such as JSDocs. I'd like to strip out any inter...

X Description: Suggestion/Feature When using the switch removeComments it will strip out all comments including the ones you may consider useful to the end consumer such as JSDocs. I'd like to strip out any i...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Preserve JSDocs in *.d.ts files when stripping comments","articleBody":"# Suggestion/Feature\r\nWhen using the switch ```removeComments``` it will strip out all comments including the ones you may consider useful to the end consumer such as JSDocs. I'd like to strip out any internal comments but preserve any JSDocs comments. It seems that an option to preserve comments in types would be sufficient.\r\n\r\n## Existing functionality\r\n```json\r\n\"removeComments\": true,\r\n\"declaration\": true,\r\n```\r\nremoves all comments including those in *.d.ts files.\r\n\r\n## Suggested functionality\r\n```json\r\n\"removeComments\": true,\r\n\"declaration\": true,\r\n```\r\nI would think by default you'd want to include the JSDocs in your type defs, so this would remove all comments from the code, but retain any comments associated with the types ie JSDocs.\r\n\r\nIf however, there is a need to remove all comments then an additional switch may be required to serve that purpose:\r\n\r\n```json\r\n\"removeCommentsIncludingDeclarations\": true,\r\n\"declaration\": true,\r\n```\r\nWould produce the same result we have today.\r\n\r\n\r\n","author":{"url":"https://github.com/dotnetprofessional","@type":"Person","name":"dotnetprofessional"},"datePublished":"2017-03-13T04:25:20Z","url":"https://github.com/microsoft/TypeScript/issues/14619"}

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:bfb9cea6-1322-de72-4a12-927b652bd593
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE600:33444D:8A95C2:BA4CE5:6B00E3F9
html-safe-nonceca75062ef146b3bfa0a2839ce1daf72df0877ee17b52870e966b401f7be311e6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjAwOjMzNDQ0RDo4QTk1QzI6QkE0Q0U1OjZCMDBFM0Y5IiwidmlzaXRvcl9pZCI6IjEzMzQ0MjY2ODU4NjkxODkwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf79cd7e98d8b2874461d81e5f027bd5e9b77ea596e485fc3d47e325b08e57b20
hovercard-subject-tagissue:213670862
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/14619/issue_layout
twitter:imagehttps://opengraph.githubassets.com/858a7dcb3aba449a131de15c522931fa67e6ee5ccd50c56f0ad86865da515d64/microsoft/TypeScript/issues/14619
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/858a7dcb3aba449a131de15c522931fa67e6ee5ccd50c56f0ad86865da515d64/microsoft/TypeScript/issues/14619
og:image:altSuggestion/Feature When using the switch removeComments it will strip out all comments including the ones you may consider useful to the end consumer such as JSDocs. I'd like to strip out any inter...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedotnetprofessional
hostnamegithub.com
expected-hostnamegithub.com
None27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14
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
release624179fb8b88d26ba5bba08894eb60a1c5a1d93d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/14619#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F14619
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%2F14619
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/14619
Reloadhttps://github.com/microsoft/TypeScript/issues/14619
Reloadhttps://github.com/microsoft/TypeScript/issues/14619
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)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/14619
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/14619
Preserve JSDocs in *.d.ts files when stripping commentshttps://github.com/microsoft/TypeScript/issues/14619#top
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/dotnetprofessional
Garry Mc (dotnetprofessional)https://github.com/dotnetprofessional
on Mar 13, 2017https://github.com/microsoft/TypeScript/issues/14619#issue-213670862
Nexthttps://github.com/microsoft/TypeScript/issues/14619?timeline_page=1
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Mar 13, 2017https://github.com/microsoft/TypeScript/issues/14619#event-997715878
https://github.com/pocesar
Paulo Cesar (pocesar)https://github.com/pocesar
on Jun 19, 2017https://github.com/microsoft/TypeScript/issues/14619#issuecomment-309485930
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Jun 19, 2017https://github.com/microsoft/TypeScript/issues/14619#issuecomment-309495103
https://github.com/pocesar
Paulo Cesar (pocesar)https://github.com/pocesar
on Jun 19, 2017https://github.com/microsoft/TypeScript/issues/14619#issuecomment-309525126
https://github.com/patsissons
Pat Sissons (patsissons)https://github.com/patsissons
on Feb 6, 2018https://github.com/microsoft/TypeScript/issues/14619#issuecomment-363295248
#21566https://github.com/microsoft/TypeScript/issues/21566
https://github.com/HolgerJeromin
Holger Jeromin (HolgerJeromin)https://github.com/HolgerJeromin
on Feb 9, 2018https://github.com/microsoft/TypeScript/issues/14619#issuecomment-364591353
licensehttps://github.com/license
Preserve (@preserve)https://github.com/preserve
https://github.com/alexsasharegan
Alex Regan (alexsasharegan)https://github.com/alexsasharegan
on Feb 14, 2018https://github.com/microsoft/TypeScript/issues/14619#issuecomment-365738041
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
https://github.com/dotnetprofessional
Garry Mc (dotnetprofessional)https://github.com/dotnetprofessional
on Mar 13, 2018https://github.com/microsoft/TypeScript/issues/14619#issuecomment-372511157
https://github.com/mindplay-dk
Rasmus Schultz (mindplay-dk)https://github.com/mindplay-dk
on Mar 15, 2018https://github.com/microsoft/TypeScript/issues/14619#issuecomment-373298257
https://github.com/dotnetprofessional
Garry Mc (dotnetprofessional)https://github.com/dotnetprofessional
on Mar 23, 2018https://github.com/microsoft/TypeScript/issues/14619#issuecomment-375548449
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/championswimmer
Arnav Gupta (championswimmer)https://github.com/championswimmer
on Sep 10, 2018https://github.com/microsoft/TypeScript/issues/14619#issuecomment-419771100
https://github.com/bluelovers
bluelovers (bluelovers)https://github.com/bluelovers
on Feb 2, 2019https://github.com/microsoft/TypeScript/issues/14619#issuecomment-459931518
https://github.com/Ionaru
Jeroen Akkerman (Ionaru)https://github.com/Ionaru
on Mar 15, 2019https://github.com/microsoft/TypeScript/issues/14619#issuecomment-473221130
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
Arnav Gupta (@championswimmer)https://github.com/championswimmer
https://github.com/bbugh
Brian Bugh (bbugh)https://github.com/bbugh
on Apr 16, 2019https://github.com/microsoft/TypeScript/issues/14619#issuecomment-483813113
https://github.com/WillsterJohnson
Willster Johnson (WillsterJohnson)https://github.com/WillsterJohnson
on Oct 14, 2022https://github.com/microsoft/TypeScript/issues/14619#issuecomment-1279242580
webstrandhttps://github.com/webstrand
https://github.com/coreyward
Corey Ward (coreyward)https://github.com/coreyward
on Jan 20, 2023https://github.com/microsoft/TypeScript/issues/14619#issuecomment-1398985528
https://gist.github.com/coreyward/e70642a41e2181641a817a632a82cd2dhttps://gist.github.com/coreyward/e70642a41e2181641a817a632a82cd2d
https://github.com/zzzgit
zzzgit (zzzgit)https://github.com/zzzgit
on Feb 18, 2023https://github.com/microsoft/TypeScript/issues/14619#issuecomment-1435489532
Ricky Curtice (kf6kjg)https://github.com/kf6kjg
on Apr 7, 2023https://github.com/microsoft/TypeScript/issues/14619#event-8955975734
feat: Eliminate typings folder in favor of per-target typeshttps://github.com/kf6kjg/type-graphql/commit/ac3e79be41b2c88837f4b055a422582075886a93
ac3e79bhttps://github.com/kf6kjg/type-graphql/commit/ac3e79be41b2c88837f4b055a422582075886a93
feat: Eliminate typings folder in favor of per-target typeshttps://github.com/kf6kjg/type-graphql/commit/e4e957a878918e7a5a2920263f79c9edee566ebc
e4e957ahttps://github.com/kf6kjg/type-graphql/commit/e4e957a878918e7a5a2920263f79c9edee566ebc
feat: Eliminate typings folder in favor of per-target typeshttps://github.com/kf6kjg/type-graphql/commit/168d43009fd94da473128d3fd54807c9cfc039cf
168d430https://github.com/kf6kjg/type-graphql/commit/168d43009fd94da473128d3fd54807c9cfc039cf
Piero (pierophp)https://github.com/pierophp
on Apr 28, 2023https://github.com/microsoft/TypeScript/issues/14619#event-9126114059
See microsoft/TypeScript#14619https://github.com/beyounglabs/alfred/commit/104a68c7c5dd869acc11c0b9713ded37c354213d
microsoft/TypeScript#14619https://github.com/microsoft/TypeScript/issues/14619
104a68chttps://github.com/beyounglabs/alfred/commit/104a68c7c5dd869acc11c0b9713ded37c354213d
https://github.com/termermc
Ian (termermc)https://github.com/termermc
on Dec 11, 2023https://github.com/microsoft/TypeScript/issues/14619#issuecomment-1849184011
https://github.com/michal-kapala
Michał Kapała (michal-kapala)https://github.com/michal-kapala
on Feb 29, 2024https://github.com/microsoft/TypeScript/issues/14619#issuecomment-1971477006
https://github.com/alexanderroidl
Alexander Roidl (alexanderroidl)https://github.com/alexanderroidl
on Jun 23, 2024https://github.com/microsoft/TypeScript/issues/14619#issuecomment-2184904711
https://github.com/unphased
Steven Lu (unphased)https://github.com/unphased
on Jul 2, 2024https://github.com/microsoft/TypeScript/issues/14619#issuecomment-2203844244
Michał Kapała (@michal-kapala)https://github.com/michal-kapala
https://github.com/michal-kapala
Michał Kapała (michal-kapala)https://github.com/michal-kapala
on Jul 2, 2024https://github.com/microsoft/TypeScript/issues/14619#issuecomment-2204279841
Steven Lu (@unphased)https://github.com/unphased
removeCommentshttps://www.typescriptlang.org/tsconfig/#removeComments
declarationhttps://www.typescriptlang.org/tsconfig/#declaration
emitDeclarationOnlyhttps://www.typescriptlang.org/tsconfig/#emitDeclarationOnly
https://github.com/unphased
Steven Lu (unphased)https://github.com/unphased
on Jul 2, 2024https://github.com/microsoft/TypeScript/issues/14619#issuecomment-2204295949
JounQin (JounQin)https://github.com/JounQin
Additional removeDeclarationComments option for removing comments for JavaScript outputs but not declarations #61549https://github.com/microsoft/TypeScript/issues/61549
on Apr 7, 2025https://github.com/microsoft/TypeScript/issues/14619#event-17156421403
https://github.com/JounQin
JounQin (JounQin)https://github.com/JounQin
on Apr 7, 2025https://github.com/microsoft/TypeScript/issues/14619#issuecomment-2783844141
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/14619
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/14619
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
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.