Vscode autocomplete does not show newer feactures methods in .js our .ts files
My Vscode autocomplete isn’t shown new methods like str.at()
(ES2022) or str.replaceAll()
(ES2021). And this does not happen only with strings, but with any other new feature like ar.findLast()
(ES2023), etc… And this is happening with both .js and .ts files.
How to hide helper definitions in d.ts files from the rest of the project?
I finally learned about the posibility of creating type script definitions for plain JS using .d.ts
files. These are imported globally, which is great for defining JSON types and the like.
Typescript can’t be setup to run client side javascript in the browser
Typescript can’t be setup to compile to JavaScript that runs in the browser. Typescript works fine for nodejs projects with defaults but not client side js. Prove me wrong.
Typescript doesn’t work for client side Javascript following instructions
I followed the instructions to setup a typescript project in vscode and right off the bat I’m getting errors from typescript after creating the tsconfig it created.