mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
* fix(types): add missing types for ws * fix: add missing path \n index.d.ts\npaths.txt * fix: use types from lib.dom.d.ts * types: update header * style: new line * Delete index.js * fix: remove MessagePort * fix: remove MessagePort * fix: set MessageEventSource to undefined
Bun type definitions
This has type definitions for Bun.js APIs. The type definitions are merged into a single file and copied to ../../packages/bun-types/types.d.ts.
Adding a new file
- Add it to ./index.d.ts
- Add it to ./paths.txt
How to generate types.d.ts
./bundle.ts merges the types in this folder into a single file.
To run it:
bun ./bundle.ts ../../packages/bun-types