Skip to content

types: Rewrite to avoid conflicts and allow for doc generation - #18024

Merged
Jarred-Sumner merged 106 commits into
mainfrom
feat/doc-gen-bun-types
Mar 25, 2025
Merged

types: Rewrite to avoid conflicts and allow for doc generation#18024
Jarred-Sumner merged 106 commits into
mainfrom
feat/doc-gen-bun-types

Conversation

@alii

@alii alii commented Mar 9, 2025

Copy link
Copy Markdown
Member

What does this PR do?

This PR rearranges all of bun-types to in a way that eliminates conflicts with Node.js AND lib.dom.d.ts, as well as declaring the Bun namespace and other symbols in a way we can generate documentation from.

Fixes #13599
Fixes #8761
Fixes #13167
Fixes #17203
Fixes #17256
Fixes #13858
Fixes #16044
Fixes #18458
Fixes #17980
Fixes #14660
Fixes #8765
Fixes #17940
Fixes #16785
Fixes #16537
Fixes #14892
Fixes #13669
Fixes #12662
Fixes #358

todo:

  • rewrite the types
  • publish @oven/typescript-bun-lib-dom
  • figure out CI for autopatching dom..? (might not be necessary)
  • see if we can get BodyInit & HeadersInit to be declared inside of Bun types, not dom

@robobun

robobun commented Mar 9, 2025

Copy link
Copy Markdown
Collaborator
Updated 9:26 AM PT - Mar 25th, 2025

@alii, your commit 6800a90 has 2 failures in Build #13907:


🧪   try this PR locally:

bunx bun-pr 18024

@alii

alii commented Mar 25, 2025

Copy link
Copy Markdown
Member Author

@Jarred-Sumner it seems like the failing tests are unrelated to changes in this PR. How can we resolve?

@Jarred-Sumner

Jarred-Sumner commented Mar 25, 2025 via email

Copy link
Copy Markdown
Collaborator

@RiskyMH RiskyMH added the types An issue with TypeScript types label Mar 25, 2025
Comment thread packages/bun-types/bun.d.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment