Skip to content
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

Property try does not exist on type 'PromiseConstructor'.typescript(2339) @types/1.2.4 #17980

Open
garyhe0780 opened this issue Mar 7, 2025 · 3 comments
Labels
bug Something isn't working confirmed bug We can reproduce this issue types An issue with TypeScript types

Comments

@garyhe0780
Copy link

What version of Bun is running?

1.2.4

What platform is your computer?

No response

What steps can reproduce the bug?

Promise.try(() => {
console.log('1');
})

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@garyhe0780 garyhe0780 added bug Something isn't working needs triage labels Mar 7, 2025
@garyhe0780
Copy link
Author

garyhe0780 commented Mar 7, 2025

don't know if this's duplicated, but I do find a related post about this issue

@RiskyMH RiskyMH added types An issue with TypeScript types confirmed bug We can reproduce this issue and removed needs triage labels Mar 7, 2025
@RiskyMH
Copy link
Member

RiskyMH commented Mar 7, 2025

Makes sense, node doesn't support this, and we must not have added to bun-types

@garyhe0780
Copy link
Author

Good point, I haven't think of this

@RiskyMH RiskyMH reopened this Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed bug We can reproduce this issue types An issue with TypeScript types
Projects
None yet
Development

No branches or pull requests

2 participants