microsoft / microsoft/TypeScript

tsc crash with jsdoc typedef and object exported with same name.

Open
#56,891 1 comment 0 reactions 1 assignee View on GitHub

@sandersn is already working on this.

Since Jan 3, 2024.

Bug Domain: Crashes
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
1d 19h
Merged PRs (30d)
117

Description

🔎 Search Terms

allowJs jsdoc

🕗 Version & Regression Information
  • This is a crash
⏯ Playground Link

https://github.com/HOnatToprak/tsbug

💻 Code

No response

🙁 Actual behavior

tsc crashes when I declare object and jsdoc typedef with same name, export the object and import the object from another file with commonjs syntax.

🙂 Expected behavior

Expected tsc to compile

Additional information about the issue

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.