René's URL Explorer Experiment


Title: should allow use `export = ` in `.cts` when module is esnext · Issue #51018 · microsoft/TypeScript · GitHub

Open Graph Title: should allow use `export = ` in `.cts` when module is esnext · Issue #51018 · microsoft/TypeScript

X Title: should allow use `export = ` in `.cts` when module is esnext · Issue #51018 · microsoft/TypeScript

Description: Bug Report 🔎 Search Terms 🕗 Version & Regression Information This is a crash This changed between versions ______ and _______ This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________ I was unable ...

Open Graph Description: Bug Report 🔎 Search Terms 🕗 Version & Regression Information This is a crash This changed between versions ______ and _______ This is the behavior in every version I tried, and I reviewed the FAQ f...

X Description: Bug Report 🔎 Search Terms 🕗 Version & Regression Information This is a crash This changed between versions ______ and _______ This is the behavior in every version I tried, and I reviewed the F...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"should allow use `export = ` in `.cts` when module is esnext","articleBody":"# Bug Report\r\n\r\n\u003c!--\r\n  Please fill in each section completely. Thank you!\r\n--\u003e\r\n\r\n### 🔎 Search Terms\r\n\r\n\u003c!--\r\n  What search terms did you use when trying to find an existing bug report?\r\n  List them here so people in the future can find this one more easily.\r\n--\u003e\r\n\r\n### 🕗 Version \u0026 Regression Information\r\n\r\n\u003c!-- When did you start seeing this bug occur?\r\n\r\n\"Bugs\" that have existed in TS for a long time are very likely to be FAQs; refer to\r\n  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs\r\n\r\nIf possible, please try testing the nightly version of TS to see if it's already been fixed.\r\nFor npm: `typescript@next`\r\nThis is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly\r\n\r\nNote: The TypeScript Playground can be used to try older versions of TypeScript.\r\n\r\nPlease keep and fill in the line that best applies:\r\n--\u003e\r\n- This is a crash\r\n- This changed between versions ______ and _______\r\n- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________\r\n- I was unable to test this on prior versions because _______\r\n\r\n### ⏯ Playground Link\r\n\r\n\u003c!--\r\n  A link to a TypeScript Playground \"Share\" link which shows this behavior\r\n\r\n  The TypeScript Workbench can be used for more complex setups, try\r\n  https://www.typescriptlang.org/dev/bug-workbench/\r\n\r\n  As a last resort, you can link to a repo, but these will be slower for us to investigate.\r\n--\u003e\r\n[Playground link with relevant code](https://www.typescriptlang.org/play?#code/PTAEFkE9QYwewCYFNQHM5IM6gBZIE5JA)\r\n\r\n### 💻 Code\r\n\r\nindex.cts\r\n\u003c!-- Please post the relevant code sample here as well--\u003e\r\n```ts\r\nimport { globToTree } from './index';\r\n\r\nexport = globToTree\r\n```\r\n\r\nindex.ts\r\n```ts\r\nexport function globToTree(): any {}\r\nObject.defineProperty(globToTree, \"__esModule\", { value: true });\r\nObject.defineProperty(globToTree, \"globToTree\", { value: globToTree });\r\nObject.defineProperty(globToTree, \"default\", { value: globToTree });\r\nexport default globToTree\r\n```\r\n\r\n```json\r\n{\r\n  \"compilerOptions\": {\r\n    \"module\": \"esnext\",\r\n    \"target\": \"es2019\",\r\n    \"jsx\": \"preserve\",\r\n    \"moduleResolution\": \"node\",\r\n    \"allowJs\": false,\r\n    \"allowUmdGlobalAccess\": false,\r\n    \"sourceMap\": true,\r\n    \"inlineSourceMap\": false,\r\n    \"inlineSources\": true,\r\n    \"declaration\": false,\r\n    \"experimentalDecorators\": true,\r\n    \"emitDecoratorMetadata\": true,\r\n    \"allowSyntheticDefaultImports\": true,\r\n    \"resolveJsonModule\": true,\r\n    \"strict\": true,\r\n    \"strictBindCallApply\": true,\r\n    \"strictNullChecks\": false,\r\n    \"strictFunctionTypes\": true,\r\n    \"noImplicitThis\": true,\r\n    \"noImplicitOverride\": true,\r\n    \"noUncheckedIndexedAccess\": true,\r\n    \"noPropertyAccessFromIndexSignature\": true,\r\n    \"preserveConstEnums\": true,\r\n    \"forceConsistentCasingInFileNames\": true,\r\n    \"incremental\": true,\r\n    \"noErrorTruncation\": true,\r\n    \"removeComments\": false,\r\n    \"traceResolution\": false,\r\n    \"newLine\": \"lf\",\r\n    \"esModuleInterop\": true,\r\n    \"importHelpers\": true,\r\n    \"noFallthroughCasesInSwitch\": true,\r\n    \"noUnusedLocals\": true,\r\n    \"noUnusedParameters\": true,\r\n    \"skipLibCheck\": true,\r\n    \"noEmit\": true\r\n  }\r\n}\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\n\u003c!-- What happened, and why it was wrong --\u003e\r\n\r\nshow error\r\n\r\n![image](https://user-images.githubusercontent.com/167966/193362563-7b3d59f1-133b-4ab5-a599-0f236de7be7c.png)\r\n\r\nor use `@ts-ignore` avoid it\r\n\r\n```ts\r\nimport { globToTree } from './index';\r\n\r\n// @ts-ignore\r\nexport = globToTree\r\n```\r\n\r\n\r\n### 🙂 Expected behavior\r\n\r\n\u003c!-- What you expected to happen instead, and why --\u003e\r\n\r\nno need `@ts-ignore`\r\n","author":{"url":"https://github.com/bluelovers","@type":"Person","name":"bluelovers"},"datePublished":"2022-09-30T23:38:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/51018/TypeScript/issues/51018"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a4fec2cf-6563-806d-0c9f-8639cb609361
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA370:1F68DB:4ED8868:68CD833:6A5DAD54
html-safe-nonce1cfed4ab64f1d09d0f98c4794726e5d61dac922402e2804a0ff293776a0463ce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzcwOjFGNjhEQjo0RUQ4ODY4OjY4Q0Q4MzM6NkE1REFENTQiLCJ2aXNpdG9yX2lkIjoiNjc1MTEyNjI0NjczMzQ5MTU0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8705f1feed872a5bdec5b43a269d15f3c19bbb9e8a1ffc9b6ec6bfc576cf30d2
hovercard-subject-tagissue:1393119893
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/51018/issue_layout
twitter:imagehttps://opengraph.githubassets.com/805aaba5a02e51ad5861515cc6d7e01a2c6fbee9a24698b0ef06169001861da4/microsoft/TypeScript/issues/51018
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/805aaba5a02e51ad5861515cc6d7e01a2c6fbee9a24698b0ef06169001861da4/microsoft/TypeScript/issues/51018
og:image:altBug Report 🔎 Search Terms 🕗 Version & Regression Information This is a crash This changed between versions ______ and _______ This is the behavior in every version I tried, and I reviewed the FAQ f...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebluelovers
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/51018#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F51018
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F51018
Sign up https://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/51018
Reloadhttps://github.com/microsoft/TypeScript/issues/51018
Reloadhttps://github.com/microsoft/TypeScript/issues/51018
Please reload this pagehttps://github.com/microsoft/TypeScript/issues/51018
microsoft https://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Notifications https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Fork 13.6k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Star 110k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Code https://github.com/microsoft/TypeScript
Issues 5k+ https://github.com/microsoft/TypeScript/issues
Pull requests 31 https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality 0 https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
Code https://github.com/microsoft/TypeScript
Issues https://github.com/microsoft/TypeScript/issues
Pull requests https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
should allow use export = in .cts when module is esnexthttps://github.com/microsoft/TypeScript/issues/51018#top
https://github.com/andrewbranch
TypeScript 5.6.0https://github.com/microsoft/TypeScript/milestone/199
https://github.com/bluelovers
bluelovershttps://github.com/bluelovers
on Sep 30, 2022https://github.com/microsoft/TypeScript/issues/51018#issue-1393119893
Playground link with relevant codehttps://www.typescriptlang.org/play#code/PTAEFkE9QYwewCYFNQHM5IM6gBZIE5JA
https://user-images.githubusercontent.com/167966/193362563-7b3d59f1-133b-4ab5-a599-0f236de7be7c.png
andrewbranchhttps://github.com/andrewbranch
TypeScript 5.6.0No due datehttps://github.com/microsoft/TypeScript/milestone/199
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.