SkythedragonS
Denoβ€’3w agoβ€’
1 reply
Skythedragon

Use web API's in deno lsp

I've written a small live-reloading script with deno bundle, so I can work on some small stuff that I don't feel needs the entirety of vite or similar.

I've set up the deno lsp to work with my editor, however, the files that I bundle to web do not get proper typechecking, because the lsp thinks the web API's (such as document.getElementById()) don't exist.

How do I tell the lsp I want to use these?
Was this page helpful?