1
0
Fork 0
react-playground/node_modules/bun-types
2025-08-25 17:46:11 +02:00
..
docs worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
bun.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
bun.ns.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
CLAUDE.md worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
deprecated.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
devserver.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
experimental.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
extensions.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
fetch.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
ffi.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
globals.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
html-rewriter.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
index.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
jsc.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
overrides.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
package.json worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
README.md worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
redis.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
s3.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
shell.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
sqlite.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
test-globals.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
test.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00
wasm.d.ts worked on GarageApp stuff 2025-08-25 17:46:11 +02:00

TypeScript types for Bun

Logo

These are the type definitions for Bun's JavaScript runtime APIs.

Installation

Install the @types/bun npm package:

# yarn/npm/pnpm work too
# @types/bun is an ordinary npm package
bun add -D @types/bun

That's it! VS Code and TypeScript automatically load @types/* packages into your project, so the Bun global and all bun:* modules should be available immediately.

Contributing

The @types/bun package is a shim that loads bun-types. The bun-types package lives in the Bun repo under packages/bun-types.

To add a new file, add it under packages/bun-types. Then add a triple-slash directive pointing to it inside ./index.d.ts.

+ /// <reference path="./newfile.d.ts" />
bun build