3 ms·
Can you give an example of a defect that the type system catched? You said typos but that's something JSLint would catch as well so not sure if it's a strong ar
by Kiro 13y ago
Can you give an example of a defect that the type system catched? You said typos but that's something JSLint would catch as well so not sure if it's a strong argument.
- 1_player 13y agoThis talk is about porting a AngularJS app to Typescript, and the kind of errors it catches just by adding type definitions: https://www.youtube.com/watch?v=u6TeBM_SC8w https://www.youtube.com/watch?v=u6TeBM_SC8w I've not yet ported my Angular apps to Typescript but I'm very much itching to do so.
- radicalbyte 13y agoOfficially we were using jshint. Misspelled magic strings, which were replaced with enumerations. We also had a number of bugs with unexpected type use - like a function which expected a boolean but was given a string, or even more common number/string failures.