Re:Design Doc: Use JavaScript instead of TypeScript for inte...
by MaxLeiter on Tuesday June 09, 2020 @03:13PM
(#23469755)
As someone who's recently jumped into a TS codebase after using just JS for years, a blog post or resource with these tips would be very nice (even though some are obvious, a lot of people don't know they exist. Disabling implicit any was a PITA/huge help for me.) Do you say don't use ! because you can't make just anything truthy in TS, or is there another reason?
Re:Design Doc: Use JavaScript instead of TypeScript for inte...
by jaaames on Thursday June 11, 2020 @12:18AM
(#23485153)
He's referring to https://www.typescriptlang.org/docs/handbook/release-notes/t... rather than boolean coercion.
Hit me up in the e-mail in my profile if you want to discuss this further, would be happy to help and discuss my reasoning further. I've been doing a LOT of TS code recently on all the major target platforms for React - browser, electron, and react-native. I manage a team who's built several applications now and we use TS for everything, including an automatically-generated TS api interface that exposes types from our C# REST backend using swagger directly to the client code.