mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Support TypeScript 5.9 (#21539)
### What does this PR do? Fixes #21535 ### How did you verify your code works?
This commit is contained in:
@@ -14,7 +14,7 @@ if (typeof Bun !== "undefined") {
|
||||
|
||||
---
|
||||
|
||||
In TypeScript environments, the previous approach will result in a type error unless `bun-types` is globally installed. To avoid this, you can check `process.versions` instead.
|
||||
In TypeScript environments, the previous approach will result in a type error unless `@types/bun` is installed. To avoid this, you can check `process.versions` instead.
|
||||
|
||||
```ts
|
||||
if (process.versions.bun) {
|
||||
|
||||
Reference in New Issue
Block a user