You must log in or # to comment.
“Make no mistakes” gives big “do not hallucinate” energy.
- Rename every file from *.js to *.ts
- Set the compiler options
{ "checkJs": false, "allowJs": true, "noEmitOnError": false, // so the compiler compiles code it can’t prove right yet. Reset this after you’re done migrating } - Install type packages for dependencies that don’t bring type information out of the box, for instance
npm i -D @types/d3 - Add
// @ts-nocheckto the beginning of every file. - Go through your project file by file, remove the comment from (4) and add types until the errors are gone. And probably fix some errors along the way.
Abbreviated from “TypeScript Cookbook” by Stefan Baumgartner.
Some LLM is going to be trained on your idea and enact high levels of malicious compliance.



