[question] [typescript] Problem with global types #4750
Replies: 5 comments
-
Yeah, looks like nothing was handled out of the box for me even with the extension installed. I just installed the types manually ( {
"compilerOptions": {
"types": ["bun-types"],
}
} Hope this helps :) |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your time and the info. I did exactly that and reloaded the TS language server. |
Beta Was this translation helpful? Give feedback.
-
SolvedI installed |
Beta Was this translation helpful? Give feedback.
-
What caught my attention about bun, wasn't speed (everyone is obsessed with authoring/compiling/run time speed these days), was the "out of the box" characteristic, but having to install the types separately gave me a bad impression. Now wondering "what else I have to add now?" I also had to activate strict mode, I expected it to be enabled by default... |
Beta Was this translation helpful? Give feedback.
-
I was able to do |
Beta Was this translation helpful? Give feedback.
-
Can not find name 'Bun'
TypeScript error.Tried installing bun-types with
bun add bun-types
.Vanilla bun project, just a
main.ts
.Latest VSCode Windows 11 Home Ubuntu WSL terminal, bun x1,
Everything seems ok at runtime.
Congratulations for x1 release! This runtime is promising!
Beta Was this translation helpful? Give feedback.
All reactions