Bun - not working typescript intellisense on imported npm modules
Hi, when I'm using Bun as a runtime I don't get any typescript info when I'm importing non-standard npm modules, like here:
This example doesn't error in editor on app.windmill.dev when using Bun, but it shows an error when using Deno.
Is it a bug or just Bun limitation?
7 Replies
We use typescript lsp that does some autodiscovery of types but possibly zod require a separate type packages that lsp doesn't autodiscover ?
zod has built-in typescript declarations
I'm not sure why typescript lsp doesn't pick them up at the moment
it works with common packages like
express
, but If I try to import something different like aws-sdk
it doesn't workunfortunately the typescript lsp we use for bun is not as good as the one for deno
we could improve it by doing more efforts in that direction
it is not that important, I can always edit scripts in my local vscode and it works fine there, but I would be grateful!
thanks for help