You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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?
🔖 Enhancement description
Include
@types/bun
in thedevDependencies
of thepackage.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
The solution is simple: include
@types/bun
in thedevDependencies
of thepackage.json
file. This way, uponbun 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?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: