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

🚀 Enhancement: Include @types/bun dev dependency for better resolution #318

Open
2 tasks done
nickgatzoulis opened this issue Dec 7, 2024 · 0 comments
Open
2 tasks done
Labels
enhancement New feature or request

Comments

@nickgatzoulis
Copy link

🔖 Enhancement description

Include @types/bun in the devDependencies of the package.json to allow IDEs to resolve the TypeScript definitions for Bun.

🎤 Pitch

In the current starter templates for bun-1.0 and bun-1.1, there are no TypeScript definitions for bun, which leads to the following TypeScript linting error:
TS2867: Cannot find name Bun. Do you need to install type definitions for Bun? Try npm i --save-dev @types/ bun

Image

The solution is simple: include @types/bun in the devDependencies of the package.json file. This way, upon bun install, the TypeScript definitions for Bun will become available, resulting in a better development experience and less confusion for beginner developers.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@nickgatzoulis nickgatzoulis added the enhancement New feature or request label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant