Got it, eye wheel mak know miss steak!
Somebody clue me in on Typescript. I’m somewhat familiar with scripting, PowerShell guy here.
Is JavaScript plus static type checking and a few other syntax enhancements. It is much easier to maintain software with static type checking. The typescript compiler outputs JavaScript
It’s basically just a programming language based on and inclusive of JavaScript, but with extra features.
Javascript but types ( I haven’t used it)
It’s a superset of JavaScript. The big add is static typing, reducing the chance of runtime type errors. It compiles to vanilla JavaScript for distribution. Other new features include enums, interfaces, and generics for more type safety.
- 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.
I was gonna say “salt bae some
anywherever there are squiggles”.
Your way seems more… MethodicalSome 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.
This is my colleague and I will have to clean up the crap, because he doesn’t understand what’s in his own commits.
Fire him. I’m a teacher and I’ve got some wonderfull and talented students that can’t find a job because companies are affraid to hire juniors because of idiots like him.
deleted by creator






