Bun

Bun issue (Nov 27): Bun TypeScript Types Incorrectly Type Uint8Array#setFromBase64 Second Parameter

minor

Is it fixed? Not yet.

Ongoing since Nov 27, 01:55 UTC. First reported Nov 27, 01:55 UTC.

What happened

Bun developers using TypeScript encounter a type mismatch in bun-types/globals.d.ts where Uint8Array#setFromBase64 incorrectly declares its second parameter as an optional number instead of the TC39 options bag expected by the runtime. This affects developers running Bun version 1.4.5+a7733435c on macOS and other platforms.

What caused it?

The bun-types/globals.d.ts type declaration declares the second parameter of setFromBase64 as an optional number, whereas the actual runtime implementation expects the TC39 options bag.

Source: github.com

No verified workaround yet

None of the linked reports describe a mitigation. This page updates when one appears.

Outage timeline

  1. Investigating(current)
  2. Workaround available(upcoming)
  3. Resolved(upcoming)
  1. First report on GitHub issue

    TypeScript: Uint8Array#setFromBase64 has the wrong second parameter type

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    TypeScript: Uint8Array#setFromBase64 has the wrong second parameter type(opens GitHub issue in a new tab)

    TypeScript: Uint8Array#setFromBase64 has the wrong second parameter type What version of Bun is running? 1.4.5+a7733435c What platform is your computer? Darwin 25.6.0 arm64 arm What steps can reproduce the bug? bun-types/globals.d.ts declares: setFromBase64( base64: string, offset?: number, ): { read: number; written: number }; The runtime expects the TC39 options bag, not a number: const target = new Uint8Array(8); // This type-checks because the declaration says offset?: number.…

    by bw496915-cmyk 0upvotes 1comments

Bun issue FAQ

What happened in the Bun issue, and why?

Ongoing since Nov 27, 01:55 UTC. The cause: The bun-types/globals.d.ts type declaration declares the second parameter of setFromBase64 as an optional number, whereas the actual runtime implementation expects the TC39 options bag.

What is affected by the Bun issue?

Bun (versions: 1.4.5+a7733435c).

When did the Bun issue start and end?

It started Nov 27, 01:55 UTC and is still ongoing (14 h 37 min 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.