Bun `bun fmt --no-semi` Drops Semicolon After TypeScript Overload Signatures
Is it fixed? Not yet.
Ongoing since Nov 10, 19:58 UTC. First reported Nov 10, 19:58 UTC.
What happened
Running `bun fmt --no-semi` drops the semicolon after a TypeScript overload signature, incorrectly causing the subsequent block to be treated as the function body. This breaks syntax validity and execution behavior for affected TypeScript files.
What caused it?
The formatter improperly handles semicolons following TypeScript overload signatures when the `--no-semi` flag is enabled.
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Official fixTimeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
`bun fmt --no-semi` drops the `;` after a TypeScript overload signature, and the next block becomes the function body
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First report`bun fmt --no-semi` drops the `;` after a TypeScript overload signature, and the next block becomes the function body(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.4+38afee6c8 (also main 2596ac5d3; src/format is unchanged on main 89452d2ac1) What platform is your computer? Linux 7.0.0-1014-aws x86_64 x86_64 What steps can reproduce the bug? overload.ts: function f(): void; { console.log("hi") } bun overload.ts # prints: hi bun fmt --no-semi overload.ts cat overload.ts bun overload.ts What is the expected behavior? overload.ts after formatting: function f(): void; { console.log("hi") } and the last command still prints…
by alpaylan 0upvotes 0comments
FAQ
What happened in the Bun issue?
Running `bun fmt --no-semi` drops the semicolon after a TypeScript overload signature, incorrectly causing the subsequent block to be treated as the function body. This breaks syntax validity and execution behavior for affected TypeScript files.
What is affected by the Bun issue?
Bun (versions: 1.4.4+38afee6c8).
When did the Bun issue start and end?
It started Nov 10, 19:58 UTC and is still ongoing (8 d 8 h so far). This page updates as it develops.
How do I get alerts for Bun?
Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.