René's URL Explorer Experiment


Title: jsdoc @enum with import/export · Issue #33575 · microsoft/TypeScript · GitHub

Open Graph Title: jsdoc @enum with import/export · Issue #33575 · microsoft/TypeScript

X Title: jsdoc @enum with import/export · Issue #33575 · microsoft/TypeScript

Description: TypeScript Version: 3.6.3 Code This works: /** @enum {number} */ const MyEnum = { a: 1, b: 2 }; /** @type {MyEnum} */ const v = MyEnum.b; This doesn't work (MyEnum imported from separate file): // my-enum.js /** @enum {number} */ const M...

Open Graph Description: TypeScript Version: 3.6.3 Code This works: /** @enum {number} */ const MyEnum = { a: 1, b: 2 }; /** @type {MyEnum} */ const v = MyEnum.b; This doesn't work (MyEnum imported from separate file): // ...

X Description: TypeScript Version: 3.6.3 Code This works: /** @enum {number} */ const MyEnum = { a: 1, b: 2 }; /** @type {MyEnum} */ const v = MyEnum.b; This doesn't work (MyEnum imported from separate file):...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"jsdoc @enum with import/export","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\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 FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease 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:**  3.6.3\r\n\r\n**Code**\r\n\r\nThis works:\r\n```ts\r\n/** @enum {number} */\r\nconst MyEnum = {\r\n  a: 1,\r\n  b: 2\r\n};\r\n\r\n/** @type {MyEnum} */\r\nconst v = MyEnum.b;\r\n```\r\n\r\nThis doesn't work (`MyEnum` imported from separate file):\r\n```ts\r\n\r\n// my-enum.js\r\n\r\n/** @enum {number} */\r\nconst MyEnum = {\r\n  a: 1,\r\n  b: 2\r\n};\r\n\r\nexport default MyEnum;\r\n\r\n// main.js\r\n\r\nimport MyEnum from './my-enum.js';\r\n\r\n/** @type {MyEnum} */ // ERROR: 'MyEnum' refers to a value, but is being used as a type here. ts(2749)\r\nconst v = MyEnum.b;\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nNo type errors.\r\n\r\nIt did work fine in v2.8.3","author":{"url":"https://github.com/art-in","@type":"Person","name":"art-in"},"datePublished":"2019-09-24T11:50:34Z","url":"https://github.com/microsoft/TypeScript/issues/33575"}

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:da13057b-46d3-48c2-84db-8b391fcec88c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9F52:34DB8F:23F88D5:3019F25:6B01A226
html-safe-nonce2e0473c9bf189c389b0889d42497a49854209d2122b028ac49cc8ca2cb9d5010
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjUyOjM0REI4RjoyM0Y4OEQ1OjMwMTlGMjU6NkIwMUEyMjYiLCJ2aXNpdG9yX2lkIjoiNTUwNDA1Mzc4OTA4NDE5NzQxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3b2b98e1444a0ec5f67e475260bc85cd32c1b251d1b65d81242116da95527b9d
hovercard-subject-tagissue:497638002
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/33575/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4e6658880719a0e871f923452485ede5beda37143fa9af042fb3b65d492cb49a/microsoft/TypeScript/issues/33575
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4e6658880719a0e871f923452485ede5beda37143fa9af042fb3b65d492cb49a/microsoft/TypeScript/issues/33575
og:image:altTypeScript Version: 3.6.3 Code This works: /** @enum {number} */ const MyEnum = { a: 1, b: 2 }; /** @type {MyEnum} */ const v = MyEnum.b; This doesn't work (MyEnum imported from separate file): // ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameart-in
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/33575#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F33575
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%2F33575
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/33575
Reloadhttps://github.com/microsoft/TypeScript/issues/33575
Reloadhttps://github.com/microsoft/TypeScript/issues/33575
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)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/33575
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/33575
#39955https://github.com/microsoft/TypeScript/pull/39955
jsdoc @enum with import/exporthttps://github.com/microsoft/TypeScript/issues/33575#top
#39955https://github.com/microsoft/TypeScript/pull/39955
https://github.com/elibarzilay
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: JSDocRelates to JSDoc parsing and type generationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20JSDoc%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
RescheduledThis issue was previously scheduled to an earlier milestonehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Rescheduled%22
TypeScript 4.0.1https://github.com/microsoft/TypeScript/milestone/123
https://github.com/art-in
Sergey Gavrilov (art-in)https://github.com/art-in
on Sep 24, 2019https://github.com/microsoft/TypeScript/issues/33575#issue-497638002
Nexthttps://github.com/microsoft/TypeScript/issues/33575?timeline_page=1
https://github.com/nickpelone
Nick Pelone (nickpelone)https://github.com/nickpelone
on Sep 24, 2019https://github.com/microsoft/TypeScript/issues/33575#issuecomment-534616314
https://github.com/ahocevar
Andreas Hocevar (ahocevar)https://github.com/ahocevar
on Sep 25, 2019https://github.com/microsoft/TypeScript/issues/33575#issuecomment-534978405
Sergey Gavrilov (@art-in)https://github.com/art-in
OpenLayershttps://github.com/openlayers/openlayers
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: JSDocRelates to JSDoc parsing and type generationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20JSDoc%22
on Sep 25, 2019https://github.com/microsoft/TypeScript/issues/33575#event-2662742850
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 3.8.0https://github.com/microsoft/TypeScript/milestone/102
on Sep 25, 2019https://github.com/microsoft/TypeScript/issues/33575#event-2662742939
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Eli Barzilay (elibarzilay)https://github.com/elibarzilay
on Sep 25, 2019https://github.com/microsoft/TypeScript/issues/33575#event-2662743200
https://github.com/wulfsberg
Jes Wulfsberg Nielsen (wulfsberg)https://github.com/wulfsberg
on Sep 27, 2019https://github.com/microsoft/TypeScript/issues/33575#issuecomment-536077247
#7546https://github.com/microsoft/TypeScript/issues/7546
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Oct 16, 2019https://github.com/microsoft/TypeScript/issues/33575#issuecomment-542816033
#34515https://github.com/microsoft/TypeScript/pull/34515
https://github.com/ahocevar
Andreas Hocevar (ahocevar)https://github.com/ahocevar
on Nov 26, 2019https://github.com/microsoft/TypeScript/issues/33575#issuecomment-558790209
#34515https://github.com/microsoft/TypeScript/pull/34515
Nathan Shively-Sanders (@sandersn)https://github.com/sandersn
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Dec 5, 2019https://github.com/microsoft/TypeScript/issues/33575#issuecomment-562239568
Eli Barzilay (@elibarzilay)https://github.com/elibarzilay
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 3.8.0https://github.com/microsoft/TypeScript/milestone/102
TypeScript 3.8.1https://github.com/microsoft/TypeScript/milestone/107
on Jan 8, 2020https://github.com/microsoft/TypeScript/issues/33575#event-2929452341
https://github.com/ahocevar
Andreas Hocevar (ahocevar)https://github.com/ahocevar
on Feb 17, 2020https://github.com/microsoft/TypeScript/issues/33575#issuecomment-586871924
https://github.com/ahocevar
Andreas Hocevar (ahocevar)https://github.com/ahocevar
on Mar 11, 2020https://github.com/microsoft/TypeScript/issues/33575#issuecomment-597491926
https://github.com/ahocevar
Andreas Hocevar (ahocevar)https://github.com/ahocevar
on Mar 11, 2020https://github.com/microsoft/TypeScript/issues/33575#issuecomment-597495688
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Typescript 4.0.1https://github.com/microsoft/TypeScript/milestone/123
on Jun 29, 2020https://github.com/microsoft/TypeScript/issues/33575#event-3493727699
https://github.com/elibarzilay
Eli Barzilay (elibarzilay)https://github.com/elibarzilay
on Aug 3, 2020https://github.com/microsoft/TypeScript/issues/33575#issuecomment-668264334
https://github.com/ahocevar
Andreas Hocevar (ahocevar)https://github.com/ahocevar
on Aug 4, 2020https://github.com/microsoft/TypeScript/issues/33575#issuecomment-668401645
Eli Barzilay (@elibarzilay)https://github.com/elibarzilay
#33575 (comment)https://github.com/microsoft/TypeScript/issues/33575#issuecomment-624350386
https://github.com/elibarzilay
Eli Barzilay (elibarzilay)https://github.com/elibarzilay
on Aug 4, 2020https://github.com/microsoft/TypeScript/issues/33575#issuecomment-668737223
Nathan Shively-Sanders (@sandersn)https://github.com/sandersn
#39770https://github.com/microsoft/TypeScript/pull/39770
Eli Barzilay (elibarzilay)https://github.com/elibarzilay
on Aug 7, 2020https://github.com/microsoft/TypeScript/issues/33575#event-3634502212
Avoid the double-symbol trick for enumshttps://github.com/elibarzilay/TypeScript/commit/6eb3daad3e76827e4222035ad32f18892b4c9599
https://docs.github.com/articles/closing-issues-via-commit-messages
6eb3daahttps://github.com/elibarzilay/TypeScript/commit/6eb3daad3e76827e4222035ad32f18892b4c9599
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 Aug 7, 2020https://github.com/microsoft/TypeScript/issues/33575#event-3634506705
Eli Barzilay (elibarzilay)https://github.com/elibarzilay
on Aug 7, 2020https://github.com/microsoft/TypeScript/issues/33575#event-3634657824
Avoid the double symbol for names that are explicitly exportedhttps://github.com/elibarzilay/TypeScript/commit/5d6710f4fbf96b4f73631cf0ec3ff0cc123eac0a
https://docs.github.com/articles/closing-issues-via-commit-messages
5d6710fhttps://github.com/elibarzilay/TypeScript/commit/5d6710f4fbf96b4f73631cf0ec3ff0cc123eac0a
Avoid the double-symbol trick for enumshttps://github.com/elibarzilay/TypeScript/commit/39a980b10a23363618261b3fabdb30500043696d
https://docs.github.com/articles/closing-issues-via-commit-messages
39a980bhttps://github.com/elibarzilay/TypeScript/commit/39a980b10a23363618261b3fabdb30500043696d
Avoid the double symbol for names that are explicitly exportedhttps://github.com/elibarzilay/TypeScript/commit/809df94234612e4dcbe1287cf469d029fbdc357f
https://docs.github.com/articles/closing-issues-via-commit-messages
809df94https://github.com/elibarzilay/TypeScript/commit/809df94234612e4dcbe1287cf469d029fbdc357f
Avoid the double-symbol trick for enumshttps://github.com/elibarzilay/TypeScript/commit/22cb2e633e1c315c28bd7e33e1ff17bd66618892
https://docs.github.com/articles/closing-issues-via-commit-messages
22cb2e6https://github.com/elibarzilay/TypeScript/commit/22cb2e633e1c315c28bd7e33e1ff17bd66618892
Avoid the double-symbol trick for enumshttps://github.com/elibarzilay/TypeScript/commit/a6d74dcc1b6f6523ff442656d5b829bdb7674e8a
https://docs.github.com/articles/closing-issues-via-commit-messages
a6d74dchttps://github.com/elibarzilay/TypeScript/commit/a6d74dcc1b6f6523ff442656d5b829bdb7674e8a
https://github.com/elibarzilay
Eli Barzilay (elibarzilay)https://github.com/elibarzilay
on Aug 11, 2020https://github.com/microsoft/TypeScript/issues/33575#issuecomment-672239590
Eli Barzilay (elibarzilay)https://github.com/elibarzilay
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#39955https://github.com/microsoft/TypeScript/pull/39955
on Aug 12, 2020https://github.com/microsoft/TypeScript/issues/33575#event-3649704117
Eli Barzilay (elibarzilay)https://github.com/elibarzilay
on Aug 12, 2020https://github.com/microsoft/TypeScript/issues/33575#event-3649704612
Avoid the double-symbol trick for enumshttps://github.com/microsoft/TypeScript/commit/620e260576c99807d72c27d96fa00959b2558d7e
https://docs.github.com/articles/closing-issues-via-commit-messages
620e260https://github.com/microsoft/TypeScript/commit/620e260576c99807d72c27d96fa00959b2558d7e
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/33575#event-20416783513
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/33575
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/33575
Eli Barzilay (elibarzilay)https://github.com/elibarzilay
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: JSDocRelates to JSDoc parsing and type generationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20JSDoc%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
RescheduledThis issue was previously scheduled to an earlier milestonehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Rescheduled%22
TypeScript 4.0.1https://github.com/microsoft/TypeScript/milestone/123
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.