{"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-nocheck to 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.
{ "checkJs": false, "allowJs": true, "noEmitOnError": false, // so the compiler compiles code it can’t prove right yet. Reset this after you’re done migrating }// @ts-nocheckto the beginning of every file.Abbreviated from “TypeScript Cookbook” by Stefan Baumgartner.
Just stop at 4.
Ta da! It’s typescript.
I was gonna say “salt bae some
anywherever there are squiggles”.Your way seems more… Methodical
Some LLM is going to be trained on your idea and enact high levels of malicious compliance.
Not my idea. I literally cited the source.
It’s a war of attrition.
The good content is sometimes in the comments.