-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Set methods are missing in types #13024
Comments
try to edit your "target": "ESNext",
"module": "ESNext",
"lib": ["ESNext"], |
Set not being part of bun-types might actually be the issue, or some other part of the project setup did not work properly. Maybe I am even confusing how the lib versions get resolved. I am using your above mentioned setup but still run into the issue that the types are not defined. // Enable latest features
"lib": ["ESNext", "DOM"],
"target": "ESNext",
"module": "ESNext", The pr with the types got merged into typescript in May. microsoft/TypeScript#57230 Do the type packages depend on the typescript version vscode is picking up or are they standalone packages that are installed on a as needed basis? |
run
yes. |
What version of Bun is running?
1.1.21+70ca2b76c
What platform is your computer?
Darwin 21.6.0 x86_64 i386
What steps can reproduce the bug?
JSC already includes the new set operators
union
intersection
difference
symmetricDifference
, but those are not reflected in the typesWhat is the expected behavior?
I would expect with the default setup after running
bun init
for these types to be present and intellisense being able to pick them up.What do you see instead?
Methods do not get suggested.
Additional information
Included in typescript 5.5 https://github.com/tc39/proposal-set-methods
The text was updated successfully, but these errors were encountered: